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

Side by Side Diff: chrome/browser/extensions/api/usb/usb_api.h

Issue 11636050: Eliminate ApiResourceEventNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_API_USB_USB_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "chrome/browser/extensions/api/api_function.h" 11 #include "chrome/browser/extensions/api/api_function.h"
12 #include "chrome/browser/extensions/api/api_resource_manager.h" 12 #include "chrome/browser/extensions/api/api_resource_manager.h"
13 #include "chrome/browser/usb/usb_device.h" 13 #include "chrome/browser/usb/usb_device.h"
14 #include "chrome/common/extensions/api/usb.h" 14 #include "chrome/common/extensions/api/usb.h"
15 #include "net/base/io_buffer.h" 15 #include "net/base/io_buffer.h"
16 16
17 class UsbDevice; 17 class UsbDevice;
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 class ApiResourceEventNotifier;
22 class UsbDeviceResource; 21 class UsbDeviceResource;
23 22
24 class UsbAsyncApiFunction : public AsyncApiFunction { 23 class UsbAsyncApiFunction : public AsyncApiFunction {
25 public: 24 public:
26 UsbAsyncApiFunction(); 25 UsbAsyncApiFunction();
27 26
28 protected: 27 protected:
29 virtual ~UsbAsyncApiFunction(); 28 virtual ~UsbAsyncApiFunction();
30 29
31 virtual bool PrePrepare() OVERRIDE; 30 virtual bool PrePrepare() OVERRIDE;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 virtual bool Prepare() OVERRIDE; 206 virtual bool Prepare() OVERRIDE;
208 virtual void AsyncWorkStart() OVERRIDE; 207 virtual void AsyncWorkStart() OVERRIDE;
209 208
210 private: 209 private:
211 scoped_ptr<extensions::api::usb::IsochronousTransfer::Params> parameters_; 210 scoped_ptr<extensions::api::usb::IsochronousTransfer::Params> parameters_;
212 }; 211 };
213 212
214 } // namespace extensions 213 } // namespace extensions
215 214
216 #endif // CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_ 215 #endif // CHROME_BROWSER_EXTENSIONS_API_USB_USB_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/socket/socket.cc ('k') | chrome/browser/extensions/api/usb/usb_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698