Index: components/arc/arc_bridge_service_impl.h |
diff --git a/components/arc/arc_bridge_service_impl.h b/components/arc/arc_bridge_service_impl.h |
index d65e712c538697db9b284f0f32764f819802962c..92678655ce24089aa1891b1f3f56593b041aaef9 100644 |
--- a/components/arc/arc_bridge_service_impl.h |
+++ b/components/arc/arc_bridge_service_impl.h |
@@ -38,6 +38,18 @@ class ArcBridgeServiceImpl : public ArcBridgeService, |
const std::string& device_type, |
base::ScopedFD fd) override; |
+ // Requests to refresh an app list. |
+ bool RefreshApps() override; |
+ |
+ // Requests to launch an app. |
+ bool LaunchApp(const std::string& package, |
+ const std::string& activity) override; |
+ |
+ // Request to load icon of specific scale_factor. |
hidehiko
2015/12/01 08:18:25
nit: Requests, load an icon?
khmel1
2015/12/01 09:49:32
Done.
|
+ bool RequestIcon(const std::string& package, |
+ const std::string& activity, |
+ int scale_factor) override; |
+ |
private: |
friend class ArcBridgeTest; |
FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Basic); |
@@ -70,6 +82,15 @@ class ArcBridgeServiceImpl : public ArcBridgeService, |
// Called when the instance has reached a boot phase |
void OnInstanceBootPhase(InstanceBootPhase phase); |
+ // Called whenever ARC sends information about available apps. |
+ void OnAppsRefreshed(const std::vector<arc::AppInfo>& apps); |
+ |
+ // Called whenever ARC sends app icon data for specific scale factor. |
+ void OnAppIcon(const std::string& package, |
+ const std::string& activity, |
+ int scale_factor, |
+ const std::vector<uint8_t>& icon_png_data); |
+ |
// IPC::Listener: |
bool OnMessageReceived(const IPC::Message& message) override; |