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

Side by Side Diff: content/shell/browser/shell_browser_context.h

Issue 261363002: Rename BrowserPluginGuestManagerDelegate to BrowserPluginGuestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_cleanupguestmanager
Patch Set: Fixed Android Build (Hopefully) Created 6 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 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 CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 11 matching lines...) Expand all
22 class DownloadManagerDelegate; 22 class DownloadManagerDelegate;
23 class ResourceContext; 23 class ResourceContext;
24 class ShellDownloadManagerDelegate; 24 class ShellDownloadManagerDelegate;
25 class ShellURLRequestContextGetter; 25 class ShellURLRequestContextGetter;
26 26
27 class ShellBrowserContext : public BrowserContext { 27 class ShellBrowserContext : public BrowserContext {
28 public: 28 public:
29 ShellBrowserContext(bool off_the_record, net::NetLog* net_log); 29 ShellBrowserContext(bool off_the_record, net::NetLog* net_log);
30 virtual ~ShellBrowserContext(); 30 virtual ~ShellBrowserContext();
31 31
32 void set_guest_manager_delegate_for_testing( 32 void set_guest_manager_for_testing(
33 BrowserPluginGuestManagerDelegate* guest_manager_delegate) { 33 BrowserPluginGuestManager* guest_manager) {
34 guest_manager_delegate_ = guest_manager_delegate; 34 guest_manager_ = guest_manager;
35 } 35 }
36 36
37 // BrowserContext implementation. 37 // BrowserContext implementation.
38 virtual base::FilePath GetPath() const OVERRIDE; 38 virtual base::FilePath GetPath() const OVERRIDE;
39 virtual bool IsOffTheRecord() const OVERRIDE; 39 virtual bool IsOffTheRecord() const OVERRIDE;
40 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() OVERRIDE; 40 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() OVERRIDE;
41 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 41 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
42 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 42 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
43 int renderer_child_id) OVERRIDE; 43 int renderer_child_id) OVERRIDE;
44 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 44 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
(...skipping 20 matching lines...) Expand all
65 int render_view_id, 65 int render_view_id,
66 int bridge_id, 66 int bridge_id,
67 int group_id, 67 int group_id,
68 const GURL& requesting_frame, 68 const GURL& requesting_frame,
69 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; 69 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE;
70 virtual void CancelProtectedMediaIdentifierPermissionRequests( 70 virtual void CancelProtectedMediaIdentifierPermissionRequests(
71 int group_id) OVERRIDE; 71 int group_id) OVERRIDE;
72 virtual ResourceContext* GetResourceContext() OVERRIDE; 72 virtual ResourceContext* GetResourceContext() OVERRIDE;
73 virtual GeolocationPermissionContext* 73 virtual GeolocationPermissionContext*
74 GetGeolocationPermissionContext() OVERRIDE; 74 GetGeolocationPermissionContext() OVERRIDE;
75 virtual content::BrowserPluginGuestManagerDelegate* 75 virtual BrowserPluginGuestManager* GetGuestManager() OVERRIDE;
76 GetGuestManagerDelegate() OVERRIDE;
77 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 76 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
78 77
79 net::URLRequestContextGetter* CreateRequestContext( 78 net::URLRequestContextGetter* CreateRequestContext(
80 ProtocolHandlerMap* protocol_handlers, 79 ProtocolHandlerMap* protocol_handlers,
81 ProtocolHandlerScopedVector protocol_interceptors); 80 ProtocolHandlerScopedVector protocol_interceptors);
82 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 81 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
83 const base::FilePath& partition_path, 82 const base::FilePath& partition_path,
84 bool in_memory, 83 bool in_memory,
85 ProtocolHandlerMap* protocol_handlers, 84 ProtocolHandlerMap* protocol_handlers,
86 ProtocolHandlerScopedVector protocol_interceptors); 85 ProtocolHandlerScopedVector protocol_interceptors);
87 86
88 private: 87 private:
89 class ShellResourceContext; 88 class ShellResourceContext;
90 89
91 // Performs initialization of the ShellBrowserContext while IO is still 90 // Performs initialization of the ShellBrowserContext while IO is still
92 // allowed on the current thread. 91 // allowed on the current thread.
93 void InitWhileIOAllowed(); 92 void InitWhileIOAllowed();
94 93
95 bool off_the_record_; 94 bool off_the_record_;
96 net::NetLog* net_log_; 95 net::NetLog* net_log_;
97 bool ignore_certificate_errors_; 96 bool ignore_certificate_errors_;
98 base::FilePath path_; 97 base::FilePath path_;
99 BrowserPluginGuestManagerDelegate* guest_manager_delegate_; 98 BrowserPluginGuestManager* guest_manager_;
100 scoped_ptr<ShellResourceContext> resource_context_; 99 scoped_ptr<ShellResourceContext> resource_context_;
101 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; 100 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_;
102 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; 101 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_;
103 102
104 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 103 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
105 }; 104 };
106 105
107 } // namespace content 106 } // namespace content
108 107
109 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 108 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/test/test_browser_context.cc ('k') | content/shell/browser/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698