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

Side by Side Diff: extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/browser/api/webcam_private/visca_webcam.cc ('k') | extensions/browser/browser_context_keyed_service_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698