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

Unified Diff: chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: More rebasing Created 4 years, 5 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
Index: chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
diff --git a/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc b/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
index 9b82d1bc1a0d860de6ea8032a84781db7457d224..9da329c911f7fdc22f0639022d0bbf7bd61f8c61 100644
--- a/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
+++ b/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/chromeos/arc/gpu_arc_video_service_host.h"
+#include <string>
+
#include "base/location.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
@@ -61,17 +63,17 @@ GpuArcVideoServiceHost::GpuArcVideoServiceHost(
arc::ArcBridgeService* bridge_service)
: ArcService(bridge_service), binding_(this) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- arc_bridge_service()->AddObserver(this);
+ arc_bridge_service()->video()->AddObserver(this);
}
GpuArcVideoServiceHost::~GpuArcVideoServiceHost() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- arc_bridge_service()->RemoveObserver(this);
+ arc_bridge_service()->video()->RemoveObserver(this);
}
-void GpuArcVideoServiceHost::OnVideoInstanceReady() {
+void GpuArcVideoServiceHost::OnInstanceReady() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- auto video_instance = arc_bridge_service()->video_instance();
+ auto video_instance = arc_bridge_service()->video()->instance();
DCHECK(video_instance);
video_instance->Init(binding_.CreateInterfacePtrAndBind());
}
« no previous file with comments | « chrome/browser/chromeos/arc/gpu_arc_video_service_host.h ('k') | chrome/browser/chromeos/file_manager/arc_file_tasks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698