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

Unified Diff: chrome/browser/usb/usb_context.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
« no previous file with comments | « chrome/browser/usb/OWNERS ('k') | chrome/browser/usb/usb_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/usb/usb_context.h
diff --git a/chrome/browser/usb/usb_context.h b/chrome/browser/usb/usb_context.h
deleted file mode 100644
index c9142069c5206e9a9de6a4928a9ce988e4e79844..0000000000000000000000000000000000000000
--- a/chrome/browser/usb/usb_context.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_USB_USB_CONTEXT_H_
-#define CHROME_BROWSER_USB_USB_CONTEXT_H_
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/threading/thread_checker.h"
-
-struct libusb_context;
-
-typedef libusb_context* PlatformUsbContext;
-
-// Ref-counted wrapper for libusb_context*.
-// It also manages the life-cycle of UsbEventHandler.
-// It is a blocking operation to delete UsbContext.
-// Destructor must be called on FILE thread.
-class UsbContext : public base::RefCountedThreadSafe<UsbContext> {
- public:
- PlatformUsbContext context() const { return context_; }
-
- protected:
- friend class UsbService;
- friend class base::RefCountedThreadSafe<UsbContext>;
-
- explicit UsbContext(PlatformUsbContext context);
- virtual ~UsbContext();
-
- private:
- class UsbEventHandler;
- PlatformUsbContext context_;
- UsbEventHandler* event_handler_;
- base::ThreadChecker thread_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(UsbContext);
-};
-
-#endif // CHROME_BROWSER_USB_USB_CONTEXT_H_
« no previous file with comments | « chrome/browser/usb/OWNERS ('k') | chrome/browser/usb/usb_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698