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

Side by Side Diff: chrome/browser/media_gallery/media_device_notifications_linux.h

Issue 10069007: Media Gallery: Move MediaDeviceNotificationsLinux from content to chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | 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 // MediaDeviceNotificationsLinux listens for mount point changes and notifies 5 // MediaDeviceNotificationsLinux listens for mount point changes and notifies
6 // the SystemMonitor about the addition and deletion of media devices. 6 // the SystemMonitor about the addition and deletion of media devices.
7 7
8 #ifndef CONTENT_BROWSER_MEDIA_DEVICE_NOTIFICATIONS_LINUX_H_ 8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_LINUX_H_
9 #define CONTENT_BROWSER_MEDIA_DEVICE_NOTIFICATIONS_LINUX_H_ 9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_LINUX_H_
10 #pragma once 10 #pragma once
11 11
12 #include <map> 12 #include <map>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 #include <utility> 15 #include <utility>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/files/file_path_watcher.h" 19 #include "base/files/file_path_watcher.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/system_monitor/system_monitor.h" 21 #include "base/system_monitor/system_monitor.h"
22 #include "content/common/content_export.h"
23 22
24 class FilePath; 23 class FilePath;
25 24
26 namespace content { 25 namespace chrome {
27 26
28 class CONTENT_EXPORT MediaDeviceNotificationsLinux 27 class MediaDeviceNotificationsLinux
29 : public base::RefCountedThreadSafe<MediaDeviceNotificationsLinux> { 28 : public base::RefCountedThreadSafe<MediaDeviceNotificationsLinux> {
30 public: 29 public:
31 explicit MediaDeviceNotificationsLinux(const FilePath& path); 30 explicit MediaDeviceNotificationsLinux(const FilePath& path);
32 31
33 // Must be called for MediaDeviceNotificationsLinux to work. 32 // Must be called for MediaDeviceNotificationsLinux to work.
34 void Init(); 33 void Init();
35 34
36 protected: 35 protected:
37 // Avoids code deleting the object while there are references to it. 36 // Avoids code deleting the object while there are references to it.
38 // Aside from the base::RefCountedThreadSafe friend class, and derived 37 // Aside from the base::RefCountedThreadSafe friend class, and derived
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 93
95 // The lowest available device id number. 94 // The lowest available device id number.
96 base::SystemMonitor::DeviceIdType current_device_id_; 95 base::SystemMonitor::DeviceIdType current_device_id_;
97 96
98 // Set of known file systems that we care about. 97 // Set of known file systems that we care about.
99 std::set<std::string> known_file_systems_; 98 std::set<std::string> known_file_systems_;
100 99
101 DISALLOW_COPY_AND_ASSIGN(MediaDeviceNotificationsLinux); 100 DISALLOW_COPY_AND_ASSIGN(MediaDeviceNotificationsLinux);
102 }; 101 };
103 102
104 } // namespace content 103 } // namespace chrome
105 104
106 #endif // CONTENT_BROWSER_MEDIA_DEVICE_NOTIFICATIONS_LINUX_H_ 105 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698