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

Unified Diff: components/arc/storage_manager/arc_storage_manager.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
« no previous file with comments | « components/arc/power/arc_power_bridge.cc ('k') | components/arc/storage_manager/arc_storage_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/storage_manager/arc_storage_manager.h
diff --git a/components/arc/storage_manager/arc_storage_manager.h b/components/arc/storage_manager/arc_storage_manager.h
index f4111bf0019e9fd89ea5a6fcb74c5ca0ba0ed73e..1ca766e73c9b38e7fddf2ac2a9ef5dd323bcd7ec 100644
--- a/components/arc/storage_manager/arc_storage_manager.h
+++ b/components/arc/storage_manager/arc_storage_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H
-#define COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H
+#ifndef COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_
+#define COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_
#include <memory>
@@ -16,8 +16,7 @@
namespace arc {
// This class represents as a simple proxy of StorageManager to Chrome OS.
-class ArcStorageManager : public ArcService,
- public ArcBridgeService::Observer {
+class ArcStorageManager : public ArcService {
public:
explicit ArcStorageManager(ArcBridgeService* bridge_service);
~ArcStorageManager() override;
@@ -27,16 +26,13 @@ class ArcStorageManager : public ArcService,
// nullptr (or aborts on Debug build).
static ArcStorageManager* Get();
- // ArcBridgeService::Observer
- void OnStorageManagerInstanceReady() override;
-
// Opens detailed preference screen of private volume on ARC.
// Returns false when an instance of ARC-side isn't ready yet.
bool OpenPrivateVolumeSettings();
// Gets storage usage of all application's APK, data, and cache size.
- using GetApplicationsSizeCallback = base::Callback<
- void(bool succeeded, arc::mojom::ApplicationsSizePtr)>;
+ using GetApplicationsSizeCallback =
+ base::Callback<void(bool succeeded, arc::mojom::ApplicationsSizePtr)>;
bool GetApplicationsSize(const GetApplicationsSizeCallback& callback);
// Deletes all applications' cache files.
@@ -50,4 +46,4 @@ class ArcStorageManager : public ArcService,
} // namespace arc
-#endif // COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H
+#endif // COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_
« no previous file with comments | « components/arc/power/arc_power_bridge.cc ('k') | components/arc/storage_manager/arc_storage_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698