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

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

Issue 15896007: [SystemInfo API] Rewrite storage info provider using storage monitor impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix comments from thestig Created 7 years, 6 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_WIN_H_ 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ 6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 StorageInfo* device_info) const OVERRIDE; 39 StorageInfo* device_info) const OVERRIDE;
40 virtual bool GetMTPStorageInfoFromDeviceId( 40 virtual bool GetMTPStorageInfoFromDeviceId(
41 const std::string& storage_device_id, 41 const std::string& storage_device_id,
42 string16* device_location, 42 string16* device_location,
43 string16* storage_object_id) const OVERRIDE; 43 string16* storage_object_id) const OVERRIDE;
44 44
45 virtual void EjectDevice( 45 virtual void EjectDevice(
46 const std::string& device_id, 46 const std::string& device_id,
47 base::Callback<void(EjectStatus)> callback) OVERRIDE; 47 base::Callback<void(EjectStatus)> callback) OVERRIDE;
48 48
49 virtual std::vector<StorageInfo> GetAllAvailableStorages() const OVERRIDE;
50
49 private: 51 private:
50 class PortableDeviceNotifications; 52 class PortableDeviceNotifications;
51 friend class test::TestStorageMonitorWin; 53 friend class test::TestStorageMonitorWin;
52 54
53 // To support unit tests, this constructor takes |volume_mount_watcher| and 55 // To support unit tests, this constructor takes |volume_mount_watcher| and
54 // |portable_device_watcher| objects. These params are either constructed in 56 // |portable_device_watcher| objects. These params are either constructed in
55 // unit tests or in StorageMonitorWin::Create() function. 57 // unit tests or in StorageMonitorWin::Create() function.
56 StorageMonitorWin(VolumeMountWatcherWin* volume_mount_watcher, 58 StorageMonitorWin(VolumeMountWatcherWin* volume_mount_watcher,
57 PortableDeviceWatcherWin* portable_device_watcher); 59 PortableDeviceWatcherWin* portable_device_watcher);
58 60
(...skipping 24 matching lines...) Expand all
83 // The portable device watcher, used to manage media transfer protocol 85 // The portable device watcher, used to manage media transfer protocol
84 // devices. 86 // devices.
85 scoped_ptr<PortableDeviceWatcherWin> portable_device_watcher_; 87 scoped_ptr<PortableDeviceWatcherWin> portable_device_watcher_;
86 88
87 DISALLOW_COPY_AND_ASSIGN(StorageMonitorWin); 89 DISALLOW_COPY_AND_ASSIGN(StorageMonitorWin);
88 }; 90 };
89 91
90 } // namespace chrome 92 } // namespace chrome
91 93
92 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ 94 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698