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

Side by Side Diff: extensions/browser/extensions_browser_client.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/public/browser/bluetooth_chooser.h" 14 #include "content/public/browser/bluetooth_chooser.h"
15 #include "extensions/browser/extension_event_histogram_value.h" 15 #include "extensions/browser/extension_event_histogram_value.h"
16 #include "extensions/browser/extension_prefs_observer.h" 16 #include "extensions/browser/extension_prefs_observer.h"
17 #include "extensions/common/view_type.h" 17 #include "extensions/common/view_type.h"
18 18
19 class ExtensionFunctionRegistry; 19 class ExtensionFunctionRegistry;
20 class PrefService; 20 class PrefService;
21 21
22 namespace base { 22 namespace base {
23 class CommandLine; 23 class CommandLine;
24 class FilePath; 24 class FilePath;
25 class ListValue; 25 class ListValue;
26 } 26 }
27 27
28 namespace content { 28 namespace content {
29 class BluetoothAllowedDevicesMapBase;
29 class BrowserContext; 30 class BrowserContext;
30 class RenderFrameHost; 31 class RenderFrameHost;
31 class WebContents; 32 class WebContents;
32 } 33 }
33 34
34 namespace net { 35 namespace net {
35 class NetLog; 36 class NetLog;
36 class NetworkDelegate; 37 class NetworkDelegate;
37 class URLRequest; 38 class URLRequest;
38 class URLRequestJob; 39 class URLRequestJob;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 virtual scoped_refptr<update_client::UpdateClient> CreateUpdateClient( 248 virtual scoped_refptr<update_client::UpdateClient> CreateUpdateClient(
248 content::BrowserContext* context); 249 content::BrowserContext* context);
249 250
250 virtual std::unique_ptr<ExtensionApiFrameIdMapHelper> 251 virtual std::unique_ptr<ExtensionApiFrameIdMapHelper>
251 CreateExtensionApiFrameIdMapHelper(ExtensionApiFrameIdMap* map); 252 CreateExtensionApiFrameIdMapHelper(ExtensionApiFrameIdMap* map);
252 253
253 virtual std::unique_ptr<content::BluetoothChooser> CreateBluetoothChooser( 254 virtual std::unique_ptr<content::BluetoothChooser> CreateBluetoothChooser(
254 content::RenderFrameHost* frame, 255 content::RenderFrameHost* frame,
255 const content::BluetoothChooser::EventHandler& event_handler); 256 const content::BluetoothChooser::EventHandler& event_handler);
256 257
258 virtual content::BluetoothAllowedDevicesMapBase* GetBluetoothDevicesMap(
259 content::RenderFrameHost* frame);
260
257 // Returns true if activity logging is enabled for the given |context|. 261 // Returns true if activity logging is enabled for the given |context|.
258 virtual bool IsActivityLoggingEnabled(content::BrowserContext* context); 262 virtual bool IsActivityLoggingEnabled(content::BrowserContext* context);
259 263
260 virtual ExtensionNavigationUIData* GetExtensionNavigationUIData( 264 virtual ExtensionNavigationUIData* GetExtensionNavigationUIData(
261 net::URLRequest* request); 265 net::URLRequest* request);
262 266
263 // Returns a delegate that provides kiosk mode functionality. 267 // Returns a delegate that provides kiosk mode functionality.
264 virtual KioskDelegate* GetKioskDelegate() = 0; 268 virtual KioskDelegate* GetKioskDelegate() = 0;
265 269
266 // Returns the single instance of |this|. 270 // Returns the single instance of |this|.
267 static ExtensionsBrowserClient* Get(); 271 static ExtensionsBrowserClient* Get();
268 272
269 // Initialize the single instance. 273 // Initialize the single instance.
270 static void Set(ExtensionsBrowserClient* client); 274 static void Set(ExtensionsBrowserClient* client);
271 }; 275 };
272 276
273 } // namespace extensions 277 } // namespace extensions
274 278
275 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 279 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698