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

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: 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 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 template <> 125 template <>
126 void BrowserContextKeyedAPIFactory< 126 void BrowserContextKeyedAPIFactory<
127 UsbEventRouter>::DeclareFactoryDependencies() { 127 UsbEventRouter>::DeclareFactoryDependencies() {
128 DependsOn(DevicePermissionsManagerFactory::GetInstance()); 128 DependsOn(DevicePermissionsManagerFactory::GetInstance());
129 DependsOn(UsbGuidMap::GetFactoryInstance()); 129 DependsOn(UsbGuidMap::GetFactoryInstance());
130 } 130 }
131 131
132 } // extensions 132 } // extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/usb/usb_api.cc ('k') | extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698