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 #include "extensions/browser/api/webcam_private/webcam_private_api.h" | 5 #include "extensions/browser/api/webcam_private/webcam_private_api.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
9 #include "content/public/browser/media_device_id.h" | 9 #include "content/public/browser/media_device_id.h" |
10 #include "content/public/browser/resource_context.h" | 10 #include "content/public/browser/resource_context.h" |
11 #include "extensions/browser/api/webcam_private/v4l2_webcam.h" | 11 #include "extensions/browser/api/webcam_private/v4l2_webcam.h" |
12 #include "extensions/browser/api/webcam_private/visca_webcam.h" | 12 #include "extensions/browser/api/webcam_private/visca_webcam.h" |
13 #include "extensions/browser/process_manager.h" | 13 #include "extensions/browser/process_manager.h" |
14 #include "extensions/browser/process_manager_factory.h" | 14 #include "extensions/browser/process_manager_factory.h" |
15 #include "extensions/common/api/webcam_private.h" | 15 #include "extensions/common/api/webcam_private.h" |
16 | 16 |
17 namespace webcam_private = extensions::core_api::webcam_private; | 17 namespace webcam_private = extensions::api::webcam_private; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class BrowserContext; | 20 class BrowserContext; |
21 } // namespace content | 21 } // namespace content |
22 | 22 |
23 namespace { | 23 namespace { |
24 const char kPathInUse[] = "Path in use"; | 24 const char kPathInUse[] = "Path in use"; |
25 const char kUnknownWebcam[] = "Unknown webcam id"; | 25 const char kUnknownWebcam[] = "Unknown webcam id"; |
26 } // namespace | 26 } // namespace |
27 | 27 |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 } | 360 } |
361 | 361 |
362 template <> | 362 template <> |
363 void BrowserContextKeyedAPIFactory<WebcamPrivateAPI> | 363 void BrowserContextKeyedAPIFactory<WebcamPrivateAPI> |
364 ::DeclareFactoryDependencies() { | 364 ::DeclareFactoryDependencies() { |
365 DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory()); | 365 DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory()); |
366 DependsOn(ProcessManagerFactory::GetInstance()); | 366 DependsOn(ProcessManagerFactory::GetInstance()); |
367 } | 367 } |
368 | 368 |
369 } // namespace extensions | 369 } // namespace extensions |
OLD | NEW |