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

Unified Diff: chrome/browser/chromeos/file_system_provider/observer.h

Issue 192573002: [fsp] Introduce file_system_provider::Service class for the FileSystemProvider API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified. Created 6 years, 9 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/file_system_provider/observer.h
diff --git a/chrome/browser/chromeos/file_system_provider/observer.h b/chrome/browser/chromeos/file_system_provider/observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d2147e61309eb36e97fdd85aaf07d4901039fd90
--- /dev/null
+++ b/chrome/browser/chromeos/file_system_provider/observer.h
@@ -0,0 +1,30 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_
+#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_
+
+#include <string>
+
+namespace chromeos {
+namespace file_system_provider {
+
+class ProvidedFileSystem;
+
+// Observes file_system_provider::Service for mounting and unmounting events.
+class Observer {
+ public:
+ // Called when a provided |file_system| is registered successfully.
+ virtual void OnProvidedFileSystemRegistered(
+ const ProvidedFileSystem& file_system) = 0;
+
+ // Called when a provided |file_system| is unregistered successfully.
+ virtual void OnProvidedFileSystemUnregistered(
+ const ProvidedFileSystem& file_system) = 0;
+};
+
+} // namespace file_system_provider
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698