Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: components/arc/video/arc_video_bridge.h

Issue 1596663002: arc-bridge: Introduce the ArcService class (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased + protected ArcService direct instantiation Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/arc/settings/arc_settings_bridge.cc ('k') | components/arc/video/arc_video_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/video/arc_video_bridge.h
diff --git a/components/arc/video/arc_video_bridge.h b/components/arc/video/arc_video_bridge.h
index f781a5ef2de6a74a504346a5d7727d32676dff3a..bf1bd3848f8f9a9d317208142da4b441e87bf8c8 100644
--- a/components/arc/video/arc_video_bridge.h
+++ b/components/arc/video/arc_video_bridge.h
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_ARC_VIDEO_ARC_VIDEO_BRIDGE_H
-#define COMPONENTS_ARC_VIDEO_ARC_VIDEO_BRIDGE_H
+#ifndef COMPONENTS_ARC_VIDEO_ARC_VIDEO_BRIDGE_H_
+#define COMPONENTS_ARC_VIDEO_ARC_VIDEO_BRIDGE_H_
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "components/arc/arc_bridge_service.h"
+#include "components/arc/arc_service.h"
#include "components/arc/video/video_host_delegate.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -17,14 +18,12 @@ class VideoHostDelegate;
// ArcVideoBridge bridges ArcBridgeService and VideoHostDelegate. It observes
// ArcBridgeService events and pass VideoHost proxy to VideoInstance.
-class ArcVideoBridge : public ArcBridgeService::Observer {
+class ArcVideoBridge : public ArcService, public ArcBridgeService::Observer {
public:
- explicit ArcVideoBridge(scoped_ptr<VideoHostDelegate> video_host_delegate);
+ ArcVideoBridge(ArcBridgeService* bridge_service,
+ scoped_ptr<VideoHostDelegate> video_host_delegate);
~ArcVideoBridge() override;
- // Starts listening to state changes of the ArcBridgeService.
- void StartObservingBridgeServiceChanges();
-
// arc::ArcBridgeService::Observer implementation.
void OnStateChanged(arc::ArcBridgeService::State state) override;
void OnVideoInstanceReady() override;
@@ -38,4 +37,4 @@ class ArcVideoBridge : public ArcBridgeService::Observer {
} // namespace arc
-#endif // COMPONENTS_ARC_VIDEO_ARC_VIDEO_BRIDGE_H
+#endif // COMPONENTS_ARC_VIDEO_ARC_VIDEO_BRIDGE_H_
« no previous file with comments | « components/arc/settings/arc_settings_bridge.cc ('k') | components/arc/video/arc_video_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698