OLD | NEW |
---|---|
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_INTENTS_DEVICE_ATTACHED_INTENT_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_INTENTS_DEVICE_ATTACHED_INTENT_SOURCE_H_ |
6 #define CHROME_BROWSER_INTENTS_DEVICE_ATTACHED_INTENT_SOURCE_H_ | 6 #define CHROME_BROWSER_INTENTS_DEVICE_ATTACHED_INTENT_SOURCE_H_ |
7 | 7 |
8 #include "base/system_monitor/system_monitor.h" | 8 #include "base/system_monitor/system_monitor.h" |
9 | 9 |
10 class Browser; | 10 class Browser; |
(...skipping 16 matching lines...) Expand all Loading... | |
27 content::WebContentsDelegate* delegate); | 27 content::WebContentsDelegate* delegate); |
28 virtual ~DeviceAttachedIntentSource(); | 28 virtual ~DeviceAttachedIntentSource(); |
29 | 29 |
30 // base::SystemMonitor::DevicesChangedObserver implementation. | 30 // base::SystemMonitor::DevicesChangedObserver implementation. |
31 virtual void OnMediaDeviceAttached( | 31 virtual void OnMediaDeviceAttached( |
32 const std::string& id, | 32 const std::string& id, |
33 const string16& name, | 33 const string16& name, |
34 base::SystemMonitor::MediaDeviceType type, | 34 base::SystemMonitor::MediaDeviceType type, |
35 const FilePath::StringType& location) OVERRIDE; | 35 const FilePath::StringType& location) OVERRIDE; |
36 | 36 |
37 void DispatchIntentsForService( | |
James Hawkins
2012/08/03 17:44:59
nit: Document method.
kmadhusu
2012/08/04 01:14:47
Done.
| |
38 const string16& action, | |
39 const string16& intent_type, | |
40 base::SystemMonitor::MediaDeviceType device_type, | |
41 const FilePath& device_path); | |
groby-ooo-7-16
2012/08/03 17:37:20
nit: Please forward-declare FilePath - IWYU
Lei Zhang
2012/08/03 21:57:17
Actually we can't because we use FilePath::StringT
kmadhusu
2012/08/04 01:14:47
Done.
| |
42 | |
37 private: | 43 private: |
38 // Weak pointer to browser to which intents will be dispatched. | 44 // Weak pointer to browser to which intents will be dispatched. |
39 Browser* browser_; | 45 Browser* browser_; |
40 content::WebContentsDelegate* delegate_; | 46 content::WebContentsDelegate* delegate_; |
41 | 47 |
42 DISALLOW_COPY_AND_ASSIGN(DeviceAttachedIntentSource); | 48 DISALLOW_COPY_AND_ASSIGN(DeviceAttachedIntentSource); |
43 }; | 49 }; |
44 | 50 |
45 #endif // CHROME_BROWSER_INTENTS_DEVICE_ATTACHED_INTENT_SOURCE_H_ | 51 #endif // CHROME_BROWSER_INTENTS_DEVICE_ATTACHED_INTENT_SOURCE_H_ |
OLD | NEW |