| 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..7482363ecc26e5556905aeecb0d5b33af2e0008b 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 RefreshAppList() override;
|
| +
|
| + // Requests to launch an app.
|
| + bool LaunchApp(const std::string& package,
|
| + const std::string& activity) override;
|
| +
|
| + // Requests to load an icon of specific scale_factor.
|
| + bool RequestAppIcon(const std::string& package,
|
| + const std::string& activity,
|
| + ScaleFactor 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 OnAppListRefreshed(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,
|
| + ScaleFactor scale_factor,
|
| + const std::vector<uint8_t>& icon_png_data);
|
| +
|
| // IPC::Listener:
|
| bool OnMessageReceived(const IPC::Message& message) override;
|
|
|
|
|