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

Side by Side Diff: chrome/browser/storage_monitor/removable_storage_observer.h

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ 6 #define CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
7 7
8 #include "chrome/browser/storage_monitor/storage_info.h" 8 #include "chrome/browser/storage_monitor/storage_info.h"
9 9
10 namespace chrome {
11
12 // Clients use this class to register for event-based notifications of 10 // Clients use this class to register for event-based notifications of
13 // removable storage devices attached to or removed from the system. 11 // removable storage devices attached to or removed from the system.
14 class RemovableStorageObserver { 12 class RemovableStorageObserver {
15 public: 13 public:
16 // When a removable storage device is attached, this 14 // When a removable storage device is attached, this
17 // event is triggered. 15 // event is triggered.
18 virtual void OnRemovableStorageAttached(const StorageInfo& info) {} 16 virtual void OnRemovableStorageAttached(const StorageInfo& info) {}
19 17
20 // When a removable storage device is detached, this 18 // When a removable storage device is detached, this
21 // event is triggered. 19 // event is triggered.
22 virtual void OnRemovableStorageDetached(const StorageInfo& info) {} 20 virtual void OnRemovableStorageDetached(const StorageInfo& info) {}
23 21
24 protected: 22 protected:
25 virtual ~RemovableStorageObserver() {} 23 virtual ~RemovableStorageObserver() {}
26 }; 24 };
27 25
28 } // namespace chrome
29
30 #endif // CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ 26 #endif // CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/storage_monitor/removable_device_constants.cc ('k') | chrome/browser/storage_monitor/storage_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698