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

Unified Diff: content/public/browser/bluetooth_allowed_devices_map_base.h

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: set --similarity=20 when did git cl upload Created 3 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
Index: content/public/browser/bluetooth_allowed_devices_map_base.h
diff --git a/content/public/browser/bluetooth_allowed_devices_map_base.h b/content/public/browser/bluetooth_allowed_devices_map_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..26cdff33cce72f5bd58eab9359da5ff596892608
--- /dev/null
+++ b/content/public/browser/bluetooth_allowed_devices_map_base.h
@@ -0,0 +1,32 @@
+// Copyright 2017 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 CONTENT_PUBLIC_BROWSER_BLUETOOTH_ALLOWED_DEVICES_MAP_BASE_H_
+#define CONTENT_PUBLIC_BROWSER_BLUETOOTH_ALLOWED_DEVICES_MAP_BASE_H_
+
+#include <map>
+
+#include "content/common/content_export.h"
+#include "url/origin.h"
+
+namespace content {
+
+class BluetoothAllowedDevices;
+
+class CONTENT_EXPORT BluetoothAllowedDevicesMapBase {
scheib 2017/01/26 04:27:36 Comment explaining class and relation to other cla
juncai 2017/01/30 20:34:55 Done.
+ public:
+ BluetoothAllowedDevicesMapBase();
+ virtual ~BluetoothAllowedDevicesMapBase();
+
+ content::BluetoothAllowedDevices* GetOrCreateAllowedDevices(
+ url::Origin origin);
+
+ private:
+ std::map<url::Origin, content::BluetoothAllowedDevices>
+ origin_to_allowed_devices_map_;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_BLUETOOTH_ALLOWED_DEVICES_MAP_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698