OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "extensions/browser/api/bluetooth/bluetooth_event_router.h" | 5 #include "extensions/browser/api/bluetooth/bluetooth_event_router.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_vector.h" | |
16 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
18 #include "content/public/browser/notification_details.h" | 17 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
20 #include "device/bluetooth/bluetooth_adapter.h" | 19 #include "device/bluetooth/bluetooth_adapter.h" |
21 #include "device/bluetooth/bluetooth_adapter_factory.h" | 20 #include "device/bluetooth/bluetooth_adapter_factory.h" |
22 #include "device/bluetooth/bluetooth_device.h" | 21 #include "device/bluetooth/bluetooth_device.h" |
23 #include "device/bluetooth/bluetooth_discovery_session.h" | 22 #include "device/bluetooth/bluetooth_discovery_session.h" |
24 #include "extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.h" | 23 #include "extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.h" |
25 #include "extensions/browser/api/bluetooth/bluetooth_api_utils.h" | 24 #include "extensions/browser/api/bluetooth/bluetooth_api_utils.h" |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 417 } |
419 | 418 |
420 void BluetoothEventRouter::OnExtensionUnloaded( | 419 void BluetoothEventRouter::OnExtensionUnloaded( |
421 content::BrowserContext* browser_context, | 420 content::BrowserContext* browser_context, |
422 const Extension* extension, | 421 const Extension* extension, |
423 UnloadedExtensionInfo::Reason reason) { | 422 UnloadedExtensionInfo::Reason reason) { |
424 CleanUpForExtension(extension->id()); | 423 CleanUpForExtension(extension->id()); |
425 } | 424 } |
426 | 425 |
427 } // namespace extensions | 426 } // namespace extensions |
OLD | NEW |