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

Side by Side Diff: blimp/engine/browser/blimp_browser_context.h

Issue 1560263002: Store Bluetooth permissions in website settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added code to check session->chooser_permission_manager Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_ 5 #ifndef BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_
6 #define BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_ 6 #define BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const base::FilePath& partition_path, 45 const base::FilePath& partition_path,
46 bool in_memory) override; 46 bool in_memory) override;
47 content::ResourceContext* GetResourceContext() override; 47 content::ResourceContext* GetResourceContext() override;
48 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 48 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
49 content::BrowserPluginGuestManager* GetGuestManager() override; 49 content::BrowserPluginGuestManager* GetGuestManager() override;
50 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 50 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
51 content::PushMessagingService* GetPushMessagingService() override; 51 content::PushMessagingService* GetPushMessagingService() override;
52 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 52 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
53 content::PermissionManager* GetPermissionManager() override; 53 content::PermissionManager* GetPermissionManager() override;
54 content::BackgroundSyncController* GetBackgroundSyncController() override; 54 content::BackgroundSyncController* GetBackgroundSyncController() override;
55 content::ChooserPermissionManager* GetChooserPermissionManager() override;
55 56
56 // The content of |protocol_handlers| is swapped into the returned instance. 57 // The content of |protocol_handlers| is swapped into the returned instance.
57 // Caller should take a reference to the returned instance via scoped_refptr. 58 // Caller should take a reference to the returned instance via scoped_refptr.
58 const scoped_refptr<BlimpURLRequestContextGetter>& CreateRequestContext( 59 const scoped_refptr<BlimpURLRequestContextGetter>& CreateRequestContext(
59 content::ProtocolHandlerMap* protocol_handlers, 60 content::ProtocolHandlerMap* protocol_handlers,
60 content::URLRequestInterceptorScopedVector request_interceptors); 61 content::URLRequestInterceptorScopedVector request_interceptors);
61 62
62 private: 63 private:
63 // Performs initialization of the BlimpBrowserContext while IO is still 64 // Performs initialization of the BlimpBrowserContext while IO is still
64 // allowed on the current thread. 65 // allowed on the current thread.
65 void InitWhileIOAllowed(); 66 void InitWhileIOAllowed();
66 67
67 scoped_ptr<BlimpResourceContext> resource_context_; 68 scoped_ptr<BlimpResourceContext> resource_context_;
68 bool ignore_certificate_errors_; 69 bool ignore_certificate_errors_;
69 scoped_ptr<content::PermissionManager> permission_manager_; 70 scoped_ptr<content::PermissionManager> permission_manager_;
70 bool off_the_record_; 71 bool off_the_record_;
71 net::NetLog* net_log_; 72 net::NetLog* net_log_;
72 base::FilePath path_; 73 base::FilePath path_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserContext); 75 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserContext);
75 }; 76 };
76 77
77 } // namespace engine 78 } // namespace engine
78 } // namespace blimp 79 } // namespace blimp
79 80
80 #endif // BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_ 81 #endif // BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_permission_manager.cc ('k') | blimp/engine/browser/blimp_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698