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

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

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to jam's comments (And a merge) Created 6 years, 6 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 | Annotate | Revision Log
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 int render_view_id, 70 int render_view_id,
71 const GURL& origin) OVERRIDE; 71 const GURL& origin) 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 BrowserPluginGuestManager* GetGuestManager() OVERRIDE; 75 virtual BrowserPluginGuestManager* GetGuestManager() OVERRIDE;
76 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 76 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
77 77
78 net::URLRequestContextGetter* CreateRequestContext( 78 net::URLRequestContextGetter* CreateRequestContext(
79 ProtocolHandlerMap* protocol_handlers, 79 ProtocolHandlerMap* protocol_handlers,
80 ProtocolHandlerScopedVector protocol_interceptors); 80 URLRequestInterceptorScopedVector request_interceptors);
81 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 81 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
82 const base::FilePath& partition_path, 82 const base::FilePath& partition_path,
83 bool in_memory, 83 bool in_memory,
84 ProtocolHandlerMap* protocol_handlers, 84 ProtocolHandlerMap* protocol_handlers,
85 ProtocolHandlerScopedVector protocol_interceptors); 85 URLRequestInterceptorScopedVector request_interceptors);
86 86
87 private: 87 private:
88 class ShellResourceContext; 88 class ShellResourceContext;
89 89
90 // Performs initialization of the ShellBrowserContext while IO is still 90 // Performs initialization of the ShellBrowserContext while IO is still
91 // allowed on the current thread. 91 // allowed on the current thread.
92 void InitWhileIOAllowed(); 92 void InitWhileIOAllowed();
93 93
94 bool off_the_record_; 94 bool off_the_record_;
95 net::NetLog* net_log_; 95 net::NetLog* net_log_;
96 bool ignore_certificate_errors_; 96 bool ignore_certificate_errors_;
97 base::FilePath path_; 97 base::FilePath path_;
98 BrowserPluginGuestManager* guest_manager_; 98 BrowserPluginGuestManager* guest_manager_;
99 scoped_ptr<ShellResourceContext> resource_context_; 99 scoped_ptr<ShellResourceContext> resource_context_;
100 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; 100 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_;
101 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; 101 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 103 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #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/browser/content_browser_client.cc ('k') | content/shell/browser/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698