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

Unified Diff: chrome/browser/chromeos/arc/arc_downloads_watcher_service.h

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/arc_downloads_watcher_service.h
diff --git a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
index 42c28ce60d955c796332ee020c449d1ec6b22a94..598fc42d57ca34a2a7e86df9d4a1f790e70aeab8 100644
--- a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
+++ b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
@@ -12,6 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service.h"
+#include "components/arc/instance_holder.h"
namespace base {
class FilePath;
@@ -21,15 +22,16 @@ namespace arc {
// Watches Downloads directory and registers newly created media files to
// Android MediaProvider.
-class ArcDownloadsWatcherService : public ArcService,
- public ArcBridgeService::Observer {
+class ArcDownloadsWatcherService
+ : public ArcService,
+ public InstanceHolder<mojom::FileSystemInstance>::Observer {
public:
explicit ArcDownloadsWatcherService(ArcBridgeService* bridge_service);
~ArcDownloadsWatcherService() override;
- // ArcBridgeService::Observer
- void OnFileSystemInstanceReady() override;
- void OnFileSystemInstanceClosed() override;
+ // InstanceHolder<mojom::FileSystemInstance>::Observer
+ void OnInstanceReady() override;
+ void OnInstanceClosed() override;
private:
class DownloadsWatcher;
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698