Skip to content

Commit bcc50e7

Browse files
committed
Address comments
1 parent ef763f9 commit bcc50e7

File tree

8 files changed

+29
-30
lines changed

8 files changed

+29
-30
lines changed

cobalt/browser/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ source_set("browser") {
2828
"cobalt_content_browser_client.h",
2929
"cobalt_secure_navigation_throttle.cc",
3030
"cobalt_secure_navigation_throttle.h",
31-
"cobalt_settings_impl.cc",
32-
"cobalt_settings_impl.h",
3331
"cobalt_web_contents_delegate.cc",
3432
"cobalt_web_contents_delegate.h",
3533
"cobalt_web_contents_observer.cc",
3634
"cobalt_web_contents_observer.h",
35+
"h5vcc_settings_impl.cc",
36+
"h5vcc_settings_impl.h",
3737
]
3838

3939
if (is_androidtv) {

cobalt/browser/cobalt_content_browser_client.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
#include "cobalt/browser/cobalt_browser_interface_binders.h"
2828
#include "cobalt/browser/cobalt_browser_main_parts.h"
2929
#include "cobalt/browser/cobalt_secure_navigation_throttle.h"
30-
#include "cobalt/browser/cobalt_settings_impl.h"
3130
#include "cobalt/browser/cobalt_web_contents_observer.h"
3231
#include "cobalt/browser/constants/cobalt_experiment_names.h"
3332
#include "cobalt/browser/global_features.h"
34-
#include "cobalt/browser/mojom/cobalt_settings.mojom.h"
33+
#include "cobalt/browser/h5vcc_settings_impl.h"
34+
#include "cobalt/browser/mojom/h5vcc_settings.mojom.h"
3535
#include "cobalt/browser/user_agent/user_agent_platform_info.h"
3636
#include "cobalt/common/features/starboard_features_initialization.h"
3737
#include "cobalt/media/service/mojom/video_geometry_setter.mojom.h"
@@ -340,8 +340,8 @@ void CobaltContentBrowserClient::ExposeInterfacesToRenderer(
340340
video_geometry_setter_service_->GetBindSubscriberCallback(),
341341
base::SingleThreadTaskRunner::GetCurrentDefault());
342342

343-
registry->AddInterface<cobalt::mojom::CobaltSettings>(
344-
base::BindRepeating(&CobaltSettingsImpl::Create),
343+
registry->AddInterface<cobalt::mojom::H5vccSettings>(
344+
base::BindRepeating(&H5vccSettingsImpl::Create),
345345
base::SingleThreadTaskRunner::GetCurrentDefault());
346346
}
347347

cobalt/browser/cobalt_settings_impl.cc renamed to cobalt/browser/h5vcc_settings_impl.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "cobalt/browser/cobalt_settings_impl.h"
15+
#include "cobalt/browser/h5vcc_settings_impl.h"
1616

1717
#include <memory>
1818

@@ -22,19 +22,19 @@
2222

2323
namespace cobalt {
2424

25-
CobaltSettingsImpl::CobaltSettingsImpl() = default;
25+
H5vccSettingsImpl::H5vccSettingsImpl() = default;
2626

27-
CobaltSettingsImpl::~CobaltSettingsImpl() = default;
27+
H5vccSettingsImpl::~H5vccSettingsImpl() = default;
2828

2929
// static
30-
void CobaltSettingsImpl::Create(
31-
mojo::PendingReceiver<mojom::CobaltSettings> receiver) {
32-
mojo::MakeSelfOwnedReceiver(std::make_unique<CobaltSettingsImpl>(),
30+
void H5vccSettingsImpl::Create(
31+
mojo::PendingReceiver<mojom::H5vccSettings> receiver) {
32+
mojo::MakeSelfOwnedReceiver(std::make_unique<H5vccSettingsImpl>(),
3333
std::move(receiver));
3434
}
3535

36-
void CobaltSettingsImpl::GetSetting(const std::string& key,
37-
GetSettingCallback callback) {
36+
void H5vccSettingsImpl::GetSetting(const std::string& key,
37+
GetSettingCallback callback) {
3838
auto setting = GlobalFeatures::GetInstance()->GetSetting(key);
3939
if (!setting) {
4040
std::move(callback).Run(nullptr);

cobalt/browser/cobalt_settings_impl.h renamed to cobalt/browser/h5vcc_settings_impl.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef COBALT_BROWSER_COBALT_SETTINGS_IMPL_H_
16-
#define COBALT_BROWSER_COBALT_SETTINGS_IMPL_H_
15+
#ifndef COBALT_BROWSER_H5VCC_SETTINGS_IMPL_H_
16+
#define COBALT_BROWSER_H5VCC_SETTINGS_IMPL_H_
1717

18-
#include "cobalt/browser/mojom/cobalt_settings.mojom.h"
18+
#include "cobalt/browser/mojom/h5vcc_settings.mojom.h"
1919
#include "mojo/public/cpp/bindings/pending_receiver.h"
2020

2121
namespace cobalt {
2222

23-
class CobaltSettingsImpl : public mojom::CobaltSettings {
23+
class H5vccSettingsImpl : public mojom::H5vccSettings {
2424
public:
25-
CobaltSettingsImpl();
26-
~CobaltSettingsImpl() override;
25+
H5vccSettingsImpl();
26+
~H5vccSettingsImpl() override;
2727

28-
CobaltSettingsImpl(const CobaltSettingsImpl&) = delete;
29-
CobaltSettingsImpl& operator=(const CobaltSettingsImpl&) = delete;
28+
H5vccSettingsImpl(const H5vccSettingsImpl&) = delete;
29+
H5vccSettingsImpl& operator=(const H5vccSettingsImpl&) = delete;
3030

31-
static void Create(mojo::PendingReceiver<mojom::CobaltSettings> receiver);
31+
static void Create(mojo::PendingReceiver<mojom::H5vccSettings> receiver);
3232

33-
// mojom::CobaltSettings implementation.
33+
// mojom::H5vccSettings implementation.
3434
void GetSetting(const std::string& key, GetSettingCallback callback) override;
3535
};
3636

3737
} // namespace cobalt
3838

39-
#endif // COBALT_BROWSER_COBALT_SETTINGS_IMPL_H_
39+
#endif // COBALT_BROWSER_H5VCC_SETTINGS_IMPL_H_

cobalt/browser/mojom/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
import("//mojo/public/tools/bindings/mojom.gni")
1616

1717
mojom("mojom") {
18-
sources = [ "cobalt_settings.mojom" ]
18+
sources = [ "h5vcc_settings.mojom" ]
1919
}

cobalt/browser/mojom/cobalt_settings.mojom renamed to cobalt/browser/mojom/h5vcc_settings.mojom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ union SettingValue {
1919
int64 int_value;
2020
};
2121

22-
interface CobaltSettings {
22+
interface H5vccSettings {
2323
// Synchronous call is used here because this is called before player
2424
// creation. Though it blocks the render thread, it is acceptable, since it
2525
// happens only at the construction stage.

cobalt/renderer/cobalt_content_renderer_client.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "base/task/bind_post_task.h"
1111
#include "base/time/time.h"
12-
#include "cobalt/browser/mojom/cobalt_settings.mojom.h"
12+
#include "cobalt/browser/mojom/h5vcc_settings.mojom.h"
1313
#include "cobalt/renderer/cobalt_render_frame_observer.h"
1414
#include "components/cdm/renderer/widevine_key_system_info.h"
1515
#include "components/js_injection/renderer/js_communication.h"
@@ -190,7 +190,7 @@ void CobaltContentRendererClient::GetStarboardRendererFactoryTraits(
190190
renderer_factory_traits->audio_write_duration_remote =
191191
base::Microseconds(kSbPlayerWriteDurationRemote);
192192

193-
mojo::Remote<cobalt::mojom::CobaltSettings> cobalt_settings;
193+
mojo::Remote<cobalt::mojom::H5vccSettings> cobalt_settings;
194194
content::RenderThread::Get()->BindHostReceiver(
195195
cobalt_settings.BindNewPipeAndPassReceiver());
196196

media/mojo/services/starboard/starboard_renderer_wrapper.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "base/time/time.h"
2222
#include "media/base/starboard/starboard_rendering_mode.h"
2323
#include "media/mojo/services/mojo_media_log.h"
24-
#include "media/renderers/video_overlay_factory.h"
2524

2625
namespace media {
2726

0 commit comments

Comments
 (0)