Chromium Code Reviews| 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_ |