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

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

Issue 651883002: Content Shell: Introduce LayoutTestURLRequestContextGetter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@LayoutTestBrowserMainParts
Patch Set: Fix. Created 6 years, 2 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); 84 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext);
85 }; 85 };
86 86
87 ShellURLRequestContextGetter* url_request_context_getter() { 87 ShellURLRequestContextGetter* url_request_context_getter() {
88 return url_request_getter_.get(); 88 return url_request_getter_.get();
89 } 89 }
90 90
91 // Used by ShellBrowserContext to initiate and set different types of 91 // Used by ShellBrowserContext to initiate and set different types of
92 // URLRequestContextGetter. 92 // URLRequestContextGetter.
93 virtual ShellURLRequestContextGetter* CreateURLRequestContextGetter(
94 ProtocolHandlerMap* protocol_handlers,
95 URLRequestInterceptorScopedVector request_interceptors);
93 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { 96 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) {
94 url_request_getter_ = getter; 97 url_request_getter_ = getter;
95 } 98 }
96 99
100 bool ignore_certificate_errors() const { return ignore_certificate_errors_; }
101 net::NetLog* net_log() const { return net_log_; }
102
97 scoped_ptr<ShellResourceContext> resource_context_; 103 scoped_ptr<ShellResourceContext> resource_context_;
98 bool ignore_certificate_errors_; 104 bool ignore_certificate_errors_;
99 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; 105 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_;
100 106
101 private: 107 private:
102 // Performs initialization of the ShellBrowserContext while IO is still 108 // Performs initialization of the ShellBrowserContext while IO is still
103 // allowed on the current thread. 109 // allowed on the current thread.
104 void InitWhileIOAllowed(); 110 void InitWhileIOAllowed();
105 111
106 bool off_the_record_; 112 bool off_the_record_;
107 net::NetLog* net_log_; 113 net::NetLog* net_log_;
108 base::FilePath path_; 114 base::FilePath path_;
109 BrowserPluginGuestManager* guest_manager_; 115 BrowserPluginGuestManager* guest_manager_;
110 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; 116 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_;
111 117
112 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 118 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
113 }; 119 };
114 120
115 } // namespace content 121 } // namespace content
116 122
117 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 123 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698