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

Side by Side Diff: chrome/browser/usb/usb_context.h

Issue 156703006: Cleanup: Remove unneeded browser_thread.h includes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller_unittest.cc ('k') | chrome/browser/usb/usb_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_USB_USB_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_USB_USB_CONTEXT_H_
6 #define CHROME_BROWSER_USB_USB_CONTEXT_H_ 6 #define CHROME_BROWSER_USB_USB_CONTEXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/thread_checker.h" 11 #include "base/threading/thread_checker.h"
12 #include "content/public/browser/browser_thread.h"
13 12
14 struct libusb_context; 13 struct libusb_context;
15 14
16 typedef libusb_context* PlatformUsbContext; 15 typedef libusb_context* PlatformUsbContext;
17 16
18 // Ref-counted wrapper for libusb_context*. 17 // Ref-counted wrapper for libusb_context*.
19 // It also manages the life-cycle of UsbEventHandler. 18 // It also manages the life-cycle of UsbEventHandler.
20 // It is a blocking operation to delete UsbContext. 19 // It is a blocking operation to delete UsbContext.
21 // Destructor must be called on FILE thread. 20 // Destructor must be called on FILE thread.
22 class UsbContext : public base::RefCountedThreadSafe<UsbContext> { 21 class UsbContext : public base::RefCountedThreadSafe<UsbContext> {
(...skipping 10 matching lines...) Expand all
33 private: 32 private:
34 class UsbEventHandler; 33 class UsbEventHandler;
35 PlatformUsbContext context_; 34 PlatformUsbContext context_;
36 UsbEventHandler* event_handler_; 35 UsbEventHandler* event_handler_;
37 base::ThreadChecker thread_checker_; 36 base::ThreadChecker thread_checker_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(UsbContext); 38 DISALLOW_COPY_AND_ASSIGN(UsbContext);
40 }; 39 };
41 40
42 #endif // CHROME_BROWSER_USB_USB_CONTEXT_H_ 41 #endif // CHROME_BROWSER_USB_USB_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller_unittest.cc ('k') | chrome/browser/usb/usb_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698