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

Side by Side Diff: extensions/browser/api/bluetooth/bluetooth_event_router.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Enum class Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EVENT_ROUTER_H_ 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EVENT_ROUTER_H_
6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EVENT_ROUTER_H_ 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EVENT_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 device::BluetoothDevice* device) override; 118 device::BluetoothDevice* device) override;
119 119
120 // Overridden from content::NotificationObserver. 120 // Overridden from content::NotificationObserver.
121 void Observe(int type, 121 void Observe(int type,
122 const content::NotificationSource& source, 122 const content::NotificationSource& source,
123 const content::NotificationDetails& details) override; 123 const content::NotificationDetails& details) override;
124 124
125 // Overridden from ExtensionRegistryObserver. 125 // Overridden from ExtensionRegistryObserver.
126 void OnExtensionUnloaded(content::BrowserContext* browser_context, 126 void OnExtensionUnloaded(content::BrowserContext* browser_context,
127 const Extension* extension, 127 const Extension* extension,
128 UnloadedExtensionInfo::Reason reason) override; 128 UnloadedExtensionReason reason) override;
129 129
130 // BrowserContextKeyedAPI implementation. 130 // BrowserContextKeyedAPI implementation.
131 static const char* service_name() { return "BluetoothEventRouter"; } 131 static const char* service_name() { return "BluetoothEventRouter"; }
132 static const bool kServiceRedirectedInIncognito = true; 132 static const bool kServiceRedirectedInIncognito = true;
133 static const bool kServiceIsNULLWhileTesting = true; 133 static const bool kServiceIsNULLWhileTesting = true;
134 134
135 private: 135 private:
136 void StartDiscoverySessionImpl(device::BluetoothAdapter* adapter, 136 void StartDiscoverySessionImpl(device::BluetoothAdapter* adapter,
137 const std::string& extension_id, 137 const std::string& extension_id,
138 const base::Closure& callback, 138 const base::Closure& callback,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 extension_registry_observer_; 185 extension_registry_observer_;
186 186
187 base::WeakPtrFactory<BluetoothEventRouter> weak_ptr_factory_; 187 base::WeakPtrFactory<BluetoothEventRouter> weak_ptr_factory_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(BluetoothEventRouter); 189 DISALLOW_COPY_AND_ASSIGN(BluetoothEventRouter);
190 }; 190 };
191 191
192 } // namespace extensions 192 } // namespace extensions
193 193
194 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EVENT_ROUTER_H_ 194 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698