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

Unified Diff: chrome/browser/extensions/api/usb/usb_device_resource.h

Issue 236203019: Move UsbService to its own component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move usb_service component symbols into usb_service namespace Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/usb/usb_device_resource.h
diff --git a/chrome/browser/extensions/api/usb/usb_device_resource.h b/chrome/browser/extensions/api/usb/usb_device_resource.h
index b959dafd367f09f6f23c551f7b1269c4dc0cc045..f07f2dc6a3f04c43241196f4bc0ed04846ced767 100644
--- a/chrome/browser/extensions/api/usb/usb_device_resource.h
+++ b/chrome/browser/extensions/api/usb/usb_device_resource.h
@@ -12,14 +12,12 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
-#include "chrome/browser/usb/usb_device_handle.h"
#include "chrome/common/extensions/api/usb.h"
+#include "components/usb_service/usb_device_handle.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/api/api_resource.h"
#include "extensions/browser/api/api_resource_manager.h"
-class UsbDeviceHandle;
-
namespace net {
class IOBuffer;
} // namespace net
@@ -30,10 +28,10 @@ namespace extensions {
class UsbDeviceResource : public ApiResource {
public:
UsbDeviceResource(const std::string& owner_extension_id,
- scoped_refptr<UsbDeviceHandle> device);
+ scoped_refptr<usb_service::UsbDeviceHandle> device);
virtual ~UsbDeviceResource();
- scoped_refptr<UsbDeviceHandle> device() { return device_; }
+ scoped_refptr<usb_service::UsbDeviceHandle> device() { return device_; }
static const content::BrowserThread::ID kThreadId =
content::BrowserThread::FILE;
@@ -42,7 +40,7 @@ class UsbDeviceResource : public ApiResource {
friend class ApiResourceManager<UsbDeviceResource>;
static const char* service_name() { return "UsbDeviceResourceManager"; }
- scoped_refptr<UsbDeviceHandle> device_;
+ scoped_refptr<usb_service::UsbDeviceHandle> device_;
DISALLOW_COPY_AND_ASSIGN(UsbDeviceResource);
};
« no previous file with comments | « chrome/browser/extensions/api/usb/usb_apitest.cc ('k') | chrome/browser/extensions/api/usb/usb_device_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698