| 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_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 static const char* service_name() { | 81 static const char* service_name() { |
| 82 return "TabCaptureRegistry"; | 82 return "TabCaptureRegistry"; |
| 83 } | 83 } |
| 84 | 84 |
| 85 static const bool kServiceIsCreatedWithBrowserContext = false; | 85 static const bool kServiceIsCreatedWithBrowserContext = false; |
| 86 static const bool kServiceRedirectedInIncognito = true; | 86 static const bool kServiceRedirectedInIncognito = true; |
| 87 | 87 |
| 88 // ExtensionRegistryObserver implementation. | 88 // ExtensionRegistryObserver implementation. |
| 89 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 89 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 90 const Extension* extension, | 90 const Extension* extension, |
| 91 UnloadedExtensionInfo::Reason reason) override; | 91 UnloadedExtensionReason reason) override; |
| 92 | 92 |
| 93 // MediaCaptureDevicesDispatcher::Observer implementation. | 93 // MediaCaptureDevicesDispatcher::Observer implementation. |
| 94 void OnRequestUpdate(int original_target_render_process_id, | 94 void OnRequestUpdate(int original_target_render_process_id, |
| 95 int original_target_render_frame_id, | 95 int original_target_render_frame_id, |
| 96 content::MediaStreamType stream_type, | 96 content::MediaStreamType stream_type, |
| 97 const content::MediaRequestState state) override; | 97 const content::MediaRequestState state) override; |
| 98 | 98 |
| 99 // Send a StatusChanged event containing the current state of |request|. | 99 // Send a StatusChanged event containing the current state of |request|. |
| 100 void DispatchStatusChangeEvent(const LiveRequest* request) const; | 100 void DispatchStatusChangeEvent(const LiveRequest* request) const; |
| 101 | 101 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 113 | 113 |
| 114 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 114 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
| 115 extension_registry_observer_; | 115 extension_registry_observer_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(TabCaptureRegistry); | 117 DISALLOW_COPY_AND_ASSIGN(TabCaptureRegistry); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace extensions | 120 } // namespace extensions |
| 121 | 121 |
| 122 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ | 122 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ |
| OLD | NEW |