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 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 494 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
495 DCHECK_EQ(extensions::NOTIFICATION_EXTENSION_HOST_DESTROYED, type); | 495 DCHECK_EQ(extensions::NOTIFICATION_EXTENSION_HOST_DESTROYED, type); |
496 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); | 496 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); |
497 BLUETOOTH_LOG(DEBUG) << "Host Destroyed: " << host->extension_id(); | 497 BLUETOOTH_LOG(DEBUG) << "Host Destroyed: " << host->extension_id(); |
498 CleanUpForExtension(host->extension_id()); | 498 CleanUpForExtension(host->extension_id()); |
499 } | 499 } |
500 | 500 |
501 void BluetoothEventRouter::OnExtensionUnloaded( | 501 void BluetoothEventRouter::OnExtensionUnloaded( |
502 content::BrowserContext* browser_context, | 502 content::BrowserContext* browser_context, |
503 const Extension* extension, | 503 const Extension* extension, |
504 UnloadedExtensionInfo::Reason reason) { | 504 UnloadedExtensionReason reason) { |
505 CleanUpForExtension(extension->id()); | 505 CleanUpForExtension(extension->id()); |
506 } | 506 } |
507 | 507 |
508 } // namespace extensions | 508 } // namespace extensions |
OLD | NEW |