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