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

Unified Diff: chrome/browser/extensions/api/hid/hid_device_resource.h

Issue 161823002: Clean up HID backend and API. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/hid/hid_device_resource.h
diff --git a/chrome/browser/extensions/api/hid/hid_device_resource.h b/chrome/browser/extensions/api/hid/hid_device_resource.h
deleted file mode 100644
index 84b9153041b8d4e6e99d7fb97ae13682b3f6a066..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/hid/hid_device_resource.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 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_EXTENSIONS_API_HID_HID_DEVICE_RESOURCE_H_
-#define CHROME_BROWSER_EXTENSIONS_API_HID_HID_DEVICE_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);
-
- virtual ~HidConnectionResource();
-
- scoped_refptr<device::HidConnection> connection() {
- return connection_;
- }
-
- private:
- friend class ApiResourceManager<HidConnectionResource>;
- static const char* service_name() {
- return "HidDeviceResourceManager";
- }
-
-
- static const content::BrowserThread::ID kThreadId =
- content::BrowserThread::FILE;
-
- scoped_refptr<device::HidConnection> connection_;
-
- DISALLOW_COPY_AND_ASSIGN(HidConnectionResource);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_HID_HID_DEVICE_RESOURCE_H_
« no previous file with comments | « chrome/browser/extensions/api/hid/hid_device_manager.cc ('k') | chrome/browser/extensions/api/hid/hid_device_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698