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

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

Issue 10909259: Share MediaStorageUtil common code among platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try a different way Created 8 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) 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_SYSTEM_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_WINDOW_WIN_ H_ 5 #ifndef CHROME_BROWSER_SYSTEM_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_WINDOW_WIN_ H_
6 #define CHROME_BROWSER_SYSTEM_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_WINDOW_WIN_ H_ 6 #define CHROME_BROWSER_SYSTEM_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_WINDOW_WIN_ H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 15
16 typedef LRESULT (*VolumeNameFunc)(LPCWSTR drive, 16 typedef LRESULT (*VolumeNameFunc)(LPCWSTR drive,
17 LPWSTR volume_name, 17 LPWSTR volume_name,
18 unsigned int volume_name_len); 18 unsigned int volume_name_len);
19 namespace chrome { 19 namespace chrome {
20 20
21 class RemovableDeviceNotificationsWin;
22 typedef RemovableDeviceNotificationsWin RemovableDeviceNotifications;
23
21 class RemovableDeviceNotificationsWindowWin 24 class RemovableDeviceNotificationsWindowWin
22 : public base::RefCountedThreadSafe<RemovableDeviceNotificationsWindowWin> { 25 : public base::RefCountedThreadSafe<RemovableDeviceNotificationsWindowWin> {
23 public: 26 public:
24 RemovableDeviceNotificationsWindowWin(); 27 RemovableDeviceNotificationsWindowWin();
25 // Only for use in unit tests. 28 // Only for use in unit tests.
26 explicit RemovableDeviceNotificationsWindowWin(VolumeNameFunc volumeNameFunc); 29 explicit RemovableDeviceNotificationsWindowWin(VolumeNameFunc volumeNameFunc);
27 30
28 LRESULT OnDeviceChange(UINT event_type, DWORD data); 31 LRESULT OnDeviceChange(UINT event_type, DWORD data);
29 32
30 private: 33 private:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 65
63 HWND window_; 66 HWND window_;
64 VolumeNameFunc volume_name_func_; 67 VolumeNameFunc volume_name_func_;
65 68
66 DISALLOW_COPY_AND_ASSIGN(RemovableDeviceNotificationsWindowWin); 69 DISALLOW_COPY_AND_ASSIGN(RemovableDeviceNotificationsWindowWin);
67 }; 70 };
68 71
69 } // namespace chrome 72 } // namespace chrome
70 73
71 #endif // CHROME_BROWSER_SYSTEM_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_WINDOW_W IN_H_ 74 #endif // CHROME_BROWSER_SYSTEM_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_WINDOW_W IN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698