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

Unified Diff: device/hid/hid_device_filter.h

Issue 825523003: Convert HidDeviceInfo from a struct to a refcounted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO to remove friend class definitions. Created 5 years, 11 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 | « device/hid/hid_connection_win.cc ('k') | device/hid/hid_device_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_device_filter.h
diff --git a/device/hid/hid_device_filter.h b/device/hid/hid_device_filter.h
index a0abbb746583196f70bfed21e383bdfdbd937f1c..fbffd2bfdbab0e11ffd448f167ce8eb120d2061f 100644
--- a/device/hid/hid_device_filter.h
+++ b/device/hid/hid_device_filter.h
@@ -8,9 +8,11 @@
#include <stdint.h>
#include <vector>
+#include "base/memory/ref_counted.h"
+
namespace device {
-struct HidDeviceInfo;
+class HidDeviceInfo;
class HidDeviceFilter {
public:
@@ -22,9 +24,9 @@ class HidDeviceFilter {
void SetUsagePage(uint16_t usage_page);
void SetUsage(uint16_t usage);
- bool Matches(const HidDeviceInfo& device_info) const;
+ bool Matches(scoped_refptr<const HidDeviceInfo> device_info) const;
- static bool MatchesAny(const HidDeviceInfo& device_info,
+ static bool MatchesAny(scoped_refptr<const HidDeviceInfo> device_info,
const std::vector<HidDeviceFilter>& filters);
private:
« no previous file with comments | « device/hid/hid_connection_win.cc ('k') | device/hid/hid_device_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698