| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 content::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 content::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_ |
| OLD | NEW |