OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_ |
6 #define EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_ | 6 #define EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
13 #include "extensions/browser/api/api_resource_manager.h" | 13 #include "extensions/browser/api/api_resource_manager.h" |
14 #include "extensions/browser/api/webcam_private/webcam.h" | 14 #include "extensions/browser/api/webcam_private/webcam.h" |
15 #include "extensions/browser/browser_context_keyed_api_factory.h" | 15 #include "extensions/browser/browser_context_keyed_api_factory.h" |
16 #include "extensions/browser/extension_function.h" | 16 #include "extensions/browser/extension_function.h" |
17 #include "extensions/browser/process_manager_observer.h" | 17 #include "extensions/browser/process_manager_observer.h" |
18 | 18 |
19 class Profile; | |
20 | |
21 namespace extensions { | 19 namespace extensions { |
22 | 20 |
23 class ProcessManager; | |
24 | |
25 class WebcamPrivateAPI : public BrowserContextKeyedAPI { | 21 class WebcamPrivateAPI : public BrowserContextKeyedAPI { |
26 public: | 22 public: |
27 static BrowserContextKeyedAPIFactory<WebcamPrivateAPI>* GetFactoryInstance(); | 23 static BrowserContextKeyedAPIFactory<WebcamPrivateAPI>* GetFactoryInstance(); |
28 | 24 |
29 // Convenience method to get the WebcamPrivateAPI for a BrowserContext. | 25 // Convenience method to get the WebcamPrivateAPI for a BrowserContext. |
30 static WebcamPrivateAPI* Get(content::BrowserContext* context); | 26 static WebcamPrivateAPI* Get(content::BrowserContext* context); |
31 | 27 |
32 explicit WebcamPrivateAPI(content::BrowserContext* context); | 28 explicit WebcamPrivateAPI(content::BrowserContext* context); |
33 ~WebcamPrivateAPI() override; | 29 ~WebcamPrivateAPI() override; |
34 | 30 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 164 |
169 private: | 165 private: |
170 void OnResetWebcam(bool success); | 166 void OnResetWebcam(bool success); |
171 | 167 |
172 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateResetFunction); | 168 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateResetFunction); |
173 }; | 169 }; |
174 | 170 |
175 } // namespace extensions | 171 } // namespace extensions |
176 | 172 |
177 #endif // EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_ | 173 #endif // EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_ |
OLD | NEW |