OLD | NEW |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { | 93 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { |
94 url_request_getter_ = getter; | 94 url_request_getter_ = getter; |
95 } | 95 } |
96 | 96 |
97 scoped_ptr<ShellResourceContext> resource_context_; | 97 scoped_ptr<ShellResourceContext> resource_context_; |
| 98 bool ignore_certificate_errors_; |
| 99 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
98 | 100 |
99 private: | 101 private: |
100 | |
101 // Performs initialization of the ShellBrowserContext while IO is still | 102 // Performs initialization of the ShellBrowserContext while IO is still |
102 // allowed on the current thread. | 103 // allowed on the current thread. |
103 void InitWhileIOAllowed(); | 104 void InitWhileIOAllowed(); |
104 | 105 |
105 bool off_the_record_; | 106 bool off_the_record_; |
106 net::NetLog* net_log_; | 107 net::NetLog* net_log_; |
107 bool ignore_certificate_errors_; | |
108 base::FilePath path_; | 108 base::FilePath path_; |
109 BrowserPluginGuestManager* guest_manager_; | 109 BrowserPluginGuestManager* guest_manager_; |
110 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; | |
111 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; | 110 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; |
112 | 111 |
113 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 112 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
114 }; | 113 }; |
115 | 114 |
116 } // namespace content | 115 } // namespace content |
117 | 116 |
118 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ | 117 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |