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

Side by Side Diff: chrome/browser/system_monitor/test_removable_storage_notifications.h

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 7 years, 10 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_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ 5 #ifndef CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_
6 #define CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ 6 #define CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_
7 7
8 #include "chrome/browser/system_monitor/removable_storage_notifications.h" 8 #include "chrome/browser/system_monitor/removable_storage_notifications.h"
9 9
10 namespace chrome { 10 namespace chrome {
(...skipping 12 matching lines...) Expand all
23 StorageInfo* device_info) const OVERRIDE; 23 StorageInfo* device_info) const OVERRIDE;
24 24
25 virtual uint64 GetStorageSize(const std::string& location) const OVERRIDE; 25 virtual uint64 GetStorageSize(const std::string& location) const OVERRIDE;
26 26
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 virtual bool GetMTPStorageInfoFromDeviceId( 28 virtual bool GetMTPStorageInfoFromDeviceId(
29 const std::string& storage_device_id, 29 const std::string& storage_device_id,
30 string16* device_location, 30 string16* device_location,
31 string16* storage_object_id) const OVERRIDE; 31 string16* storage_object_id) const OVERRIDE;
32 #endif 32 #endif
33
34 // TODO(gbillock): Update tests to use receiver and
35 // get rid of ProcessAttach/ProcessDetach here.
36 void ProcessAttach(const std::string& id,
37 const string16& name,
38 const FilePath::StringType& location);
39
40 void ProcessDetach(const std::string& id);
41
42 virtual Receiver* receiver() const OVERRIDE;
33 }; 43 };
34 44
35 } // namespace test 45 } // namespace test
36 } // namespace chrome 46 } // namespace chrome
37 47
38 #endif // CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ 48 #endif // CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698