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

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

Issue 13524003: [StorageMonitor] Remove GetStorageSize. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Compiling... Created 7 years, 8 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) 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_TEST_STORAGE_MONITOR_H_ 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ 6 #define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_
7 7
8 #include "chrome/browser/storage_monitor/storage_monitor.h" 8 #include "chrome/browser/storage_monitor/storage_monitor.h"
9 9
10 namespace chrome { 10 namespace chrome {
11 namespace test { 11 namespace test {
12 12
13 class TestStorageMonitor : public chrome::StorageMonitor { 13 class TestStorageMonitor : public chrome::StorageMonitor {
14 public: 14 public:
15 TestStorageMonitor(); 15 TestStorageMonitor();
16 virtual ~TestStorageMonitor(); 16 virtual ~TestStorageMonitor();
17 17
18 // Will create a new testing implementation for browser tests, 18 // Will create a new testing implementation for browser tests,
19 // taking care to deal with the existing singleton correctly. 19 // taking care to deal with the existing singleton correctly.
20 static TestStorageMonitor* CreateForBrowserTests(); 20 static TestStorageMonitor* CreateForBrowserTests();
21 21
22 virtual bool GetStorageInfoForPath( 22 virtual bool GetStorageInfoForPath(
23 const base::FilePath& path, 23 const base::FilePath& path,
24 StorageInfo* device_info) const OVERRIDE; 24 StorageInfo* device_info) const OVERRIDE;
25 25
26 virtual uint64 GetStorageSize(
27 const base::FilePath::StringType& location) const OVERRIDE;
28
29 #if defined(OS_WIN) 26 #if defined(OS_WIN)
30 virtual bool GetMTPStorageInfoFromDeviceId( 27 virtual bool GetMTPStorageInfoFromDeviceId(
31 const std::string& storage_device_id, 28 const std::string& storage_device_id,
32 string16* device_location, 29 string16* device_location,
33 string16* storage_object_id) const OVERRIDE; 30 string16* storage_object_id) const OVERRIDE;
34 #endif 31 #endif
35 32
36 virtual Receiver* receiver() const OVERRIDE; 33 virtual Receiver* receiver() const OVERRIDE;
37 34
38 virtual void EjectDevice( 35 virtual void EjectDevice(
39 const std::string& device_id, 36 const std::string& device_id,
40 base::Callback<void(StorageMonitor::EjectStatus)> callback) 37 base::Callback<void(StorageMonitor::EjectStatus)> callback)
41 OVERRIDE; 38 OVERRIDE;
42 39
43 const std::string& ejected_device() const { return ejected_device_; } 40 const std::string& ejected_device() const { return ejected_device_; }
44 41
45 private: 42 private:
46 std::string ejected_device_; 43 std::string ejected_device_;
47 }; 44 };
48 45
49 } // namespace test 46 } // namespace test
50 } // namespace chrome 47 } // namespace chrome
51 48
52 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ 49 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor_win.cc ('k') | chrome/browser/storage_monitor/test_storage_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698