| Index: chrome/browser/extensions/api/hid/hid_connection_resource.h
|
| diff --git a/chrome/browser/extensions/api/hid/hid_device_resource.h b/chrome/browser/extensions/api/hid/hid_connection_resource.h
|
| similarity index 62%
|
| rename from chrome/browser/extensions/api/hid/hid_device_resource.h
|
| rename to chrome/browser/extensions/api/hid/hid_connection_resource.h
|
| index 84b9153041b8d4e6e99d7fb97ae13682b3f6a066..f172f8fe70533dc635c3c0e61abe9d479e6f1371 100644
|
| --- a/chrome/browser/extensions/api/hid/hid_device_resource.h
|
| +++ b/chrome/browser/extensions/api/hid/hid_connection_resource.h
|
| @@ -2,43 +2,33 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_EXTENSIONS_API_HID_HID_DEVICE_RESOURCE_H_
|
| -#define CHROME_BROWSER_EXTENSIONS_API_HID_HID_DEVICE_RESOURCE_H_
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_HID_HID_CONNECTION_RESOURCE_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_API_HID_HID_CONNECTION_RESOURCE_H_
|
|
|
| #include <string>
|
|
|
| -#include "base/basictypes.h"
|
| -#include "base/lazy_instance.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "chrome/browser/extensions/api/api_resource.h"
|
| #include "chrome/browser/extensions/api/api_resource_manager.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "device/hid/hid_connection.h"
|
| -#include "device/hid/hid_device_info.h"
|
| -
|
| -namespace net {
|
| -class IOBuffer;
|
| -} // namespace net
|
|
|
| namespace extensions {
|
|
|
| class HidConnectionResource : public ApiResource {
|
| public:
|
| HidConnectionResource(const std::string& owner_extension_id,
|
| - scoped_refptr<device::HidConnection> connection);
|
| -
|
| + scoped_refptr<device::HidConnection> connection);
|
| virtual ~HidConnectionResource();
|
|
|
| - scoped_refptr<device::HidConnection> connection() {
|
| + scoped_refptr<device::HidConnection> connection() const {
|
| return connection_;
|
| }
|
|
|
| private:
|
| friend class ApiResourceManager<HidConnectionResource>;
|
| - static const char* service_name() {
|
| - return "HidDeviceResourceManager";
|
| - }
|
|
|
| + static const char* service_name() { return "HidConnectionResourceManager"; }
|
|
|
| static const content::BrowserThread::ID kThreadId =
|
| content::BrowserThread::FILE;
|
| @@ -50,4 +40,4 @@ class HidConnectionResource : public ApiResource {
|
|
|
| } // namespace extensions
|
|
|
| -#endif // CHROME_BROWSER_EXTENSIONS_API_HID_HID_DEVICE_RESOURCE_H_
|
| +#endif // CHROME_BROWSER_EXTENSIONS_API_HID_HID_CONNECTION_RESOURCE_H_
|
|
|