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

Side by Side Diff: extensions/browser/api/usb/usb_event_router.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: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/usb/usb_event_router.h" 5 #include "extensions/browser/api/usb/usb_event_router.h"
6 6
7 #include "device/core/device_client.h" 7 #include "device/core/device_client.h"
8 #include "device/usb/usb_device.h" 8 #include "device/usb/usb_device.h"
9 #include "extensions/browser/api/device_permissions_manager.h" 9 #include "extensions/browser/api/device_permissions_manager.h"
10 #include "extensions/browser/api/usb/usb_guid_map.h" 10 #include "extensions/browser/api/usb/usb_guid_map.h"
11 #include "extensions/common/api/usb.h" 11 #include "extensions/common/api/usb.h"
12 #include "extensions/common/permissions/permissions_data.h" 12 #include "extensions/common/permissions/permissions_data.h"
13 #include "extensions/common/permissions/usb_device_permission.h" 13 #include "extensions/common/permissions/usb_device_permission.h"
14 14
15 namespace usb = extensions::core_api::usb; 15 namespace usb = extensions::api::usb;
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 using device::UsbDevice; 18 using device::UsbDevice;
19 using device::UsbService; 19 using device::UsbService;
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 namespace { 23 namespace {
24 24
25 // Returns true iff the given extension has permission to receive events 25 // Returns true iff the given extension has permission to receive events
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 template <> 123 template <>
124 void BrowserContextKeyedAPIFactory< 124 void BrowserContextKeyedAPIFactory<
125 UsbEventRouter>::DeclareFactoryDependencies() { 125 UsbEventRouter>::DeclareFactoryDependencies() {
126 DependsOn(DevicePermissionsManagerFactory::GetInstance()); 126 DependsOn(DevicePermissionsManagerFactory::GetInstance());
127 DependsOn(UsbGuidMap::GetFactoryInstance()); 127 DependsOn(UsbGuidMap::GetFactoryInstance());
128 } 128 }
129 129
130 } // extensions 130 } // extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698