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

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_file_system_service.h

Issue 2637163002: Defer ARC file system operations while ARC is booting. (Closed)
Patch Set: Addressed hashimoto's comments. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h"
10 #include "components/arc/arc_service.h" 9 #include "components/arc/arc_service.h"
11 #include "components/arc/common/file_system.mojom.h"
12 #include "components/arc/instance_holder.h"
13 10
14 namespace arc { 11 namespace arc {
15 12
16 class ArcBridgeService; 13 class ArcBridgeService;
17 class ArcFileSystemObserver;
18 14
19 // ArcFileSystemService registers ARC file systems to the system. 15 // ArcFileSystemService registers ARC file systems to the system.
20 class ArcFileSystemService 16 class ArcFileSystemService : public ArcService {
21 : public ArcService,
22 public InstanceHolder<mojom::FileSystemInstance>::Observer {
23 public: 17 public:
18 // For supporting ArcServiceManager::GetService<T>().
19 static const char kArcServiceName[];
20
24 explicit ArcFileSystemService(ArcBridgeService* bridge_service); 21 explicit ArcFileSystemService(ArcBridgeService* bridge_service);
25 ~ArcFileSystemService() override; 22 ~ArcFileSystemService() override;
26 23
27 void AddObserver(ArcFileSystemObserver* observer);
28 void RemoveObserver(ArcFileSystemObserver* observer);
29
30 // InstanceHolder<mojom::FileSystemInstance>::Observer overrides:
31 void OnInstanceReady() override;
32 void OnInstanceClosed() override;
33
34 // For supporting ArcServiceManager::GetService<T>().
35 static const char kArcServiceName[];
36
37 private: 24 private:
38 base::ObserverList<ArcFileSystemObserver> observer_list_;
39
40 DISALLOW_COPY_AND_ASSIGN(ArcFileSystemService); 25 DISALLOW_COPY_AND_ASSIGN(ArcFileSystemService);
41 }; 26 };
42 27
43 } // namespace arc 28 } // namespace arc
44 29
45 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_SERVICE_H_ 30 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698