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

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

Issue 18578008: [SystemInfo API] Move Storage API out of experimental namespace and rename to the "system" namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to the "system" namespace. Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_STORAGE_MONITOR_H_ 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_H_ 6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/observer_list_threadsafe.h" 14 #include "base/observer_list_threadsafe.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "chrome/browser/storage_monitor/storage_info.h" 18 #include "chrome/browser/storage_monitor/storage_info.h"
19 19
20 class ChromeBrowserMainPartsLinux; 20 class ChromeBrowserMainPartsLinux;
21 class ChromeBrowserMainPartsMac; 21 class ChromeBrowserMainPartsMac;
22 class MediaGalleriesPlatformAppBrowserTest; 22 class MediaGalleriesPlatformAppBrowserTest;
23 class MediaGalleriesPrivateApiTest; 23 class MediaGalleriesPrivateApiTest;
24 class MediaGalleriesPrivateEjectApiTest; 24 class MediaGalleriesPrivateEjectApiTest;
25 class SystemInfoStorageApiTest; 25 class SystemStorageApiTest;
26 class SystemInfoStorageEjectApiTest; 26 class SystemStorageEjectApiTest;
27 27
28 namespace device { 28 namespace device {
29 class MediaTransferProtocolManager; 29 class MediaTransferProtocolManager;
30 } 30 }
31 31
32 namespace chrome { 32 namespace chrome {
33 33
34 class MediaFileSystemRegistryTest; 34 class MediaFileSystemRegistryTest;
35 class RemovableStorageObserver; 35 class RemovableStorageObserver;
36 class TransientDeviceIds; 36 class TransientDeviceIds;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 virtual void EjectDevice( 125 virtual void EjectDevice(
126 const std::string& device_id, 126 const std::string& device_id,
127 base::Callback<void(EjectStatus)> callback); 127 base::Callback<void(EjectStatus)> callback);
128 128
129 protected: 129 protected:
130 friend class ::MediaGalleriesPlatformAppBrowserTest; 130 friend class ::MediaGalleriesPlatformAppBrowserTest;
131 friend class ::MediaGalleriesPrivateApiTest; 131 friend class ::MediaGalleriesPrivateApiTest;
132 friend class ::MediaGalleriesPrivateEjectApiTest; 132 friend class ::MediaGalleriesPrivateEjectApiTest;
133 friend class MediaFileSystemRegistryTest; 133 friend class MediaFileSystemRegistryTest;
134 friend class ::SystemInfoStorageApiTest; 134 friend class ::SystemStorageApiTest;
135 friend class ::SystemInfoStorageEjectApiTest; 135 friend class ::SystemStorageEjectApiTest;
136 136
137 StorageMonitor(); 137 StorageMonitor();
138 virtual ~StorageMonitor(); 138 virtual ~StorageMonitor();
139 139
140 // Removes the existing singleton for testing. 140 // Removes the existing singleton for testing.
141 // (So that a new one can be created.) 141 // (So that a new one can be created.)
142 static void RemoveSingletonForTesting(); 142 static void RemoveSingletonForTesting();
143 143
144 virtual Receiver* receiver() const; 144 virtual Receiver* receiver() const;
145 145
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Map of all known storage devices,including fixed and removable storages. 178 // Map of all known storage devices,including fixed and removable storages.
179 StorageMap storage_map_; 179 StorageMap storage_map_;
180 180
181 scoped_ptr<TransientDeviceIds> transient_device_ids_; 181 scoped_ptr<TransientDeviceIds> transient_device_ids_;
182 }; 182 };
183 183
184 } // namespace chrome 184 } // namespace chrome
185 185
186 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_H_ 186 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698