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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const GURL& requesting_frame, | 62 const GURL& requesting_frame, |
63 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; | 63 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; |
64 virtual void CancelProtectedMediaIdentifierPermissionRequests( | 64 virtual void CancelProtectedMediaIdentifierPermissionRequests( |
65 int group_id) OVERRIDE; | 65 int group_id) OVERRIDE; |
66 virtual ResourceContext* GetResourceContext() OVERRIDE; | 66 virtual ResourceContext* GetResourceContext() OVERRIDE; |
67 virtual GeolocationPermissionContext* | 67 virtual GeolocationPermissionContext* |
68 GetGeolocationPermissionContext() OVERRIDE; | 68 GetGeolocationPermissionContext() OVERRIDE; |
69 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 69 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
70 | 70 |
71 net::URLRequestContextGetter* CreateRequestContext( | 71 net::URLRequestContextGetter* CreateRequestContext( |
72 ProtocolHandlerMap* protocol_handlers); | 72 ProtocolHandlerMap* protocol_handlers, |
| 73 ProtocolHandlerScopedVector protocol_interceptors); |
73 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 74 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
74 const base::FilePath& partition_path, | 75 const base::FilePath& partition_path, |
75 bool in_memory, | 76 bool in_memory, |
76 ProtocolHandlerMap* protocol_handlers); | 77 ProtocolHandlerMap* protocol_handlers, |
| 78 ProtocolHandlerScopedVector protocol_interceptors); |
77 | 79 |
78 private: | 80 private: |
79 class ShellResourceContext; | 81 class ShellResourceContext; |
80 | 82 |
81 // Performs initialization of the ShellBrowserContext while IO is still | 83 // Performs initialization of the ShellBrowserContext while IO is still |
82 // allowed on the current thread. | 84 // allowed on the current thread. |
83 void InitWhileIOAllowed(); | 85 void InitWhileIOAllowed(); |
84 | 86 |
85 bool off_the_record_; | 87 bool off_the_record_; |
86 net::NetLog* net_log_; | 88 net::NetLog* net_log_; |
87 bool ignore_certificate_errors_; | 89 bool ignore_certificate_errors_; |
88 base::FilePath path_; | 90 base::FilePath path_; |
89 scoped_ptr<ShellResourceContext> resource_context_; | 91 scoped_ptr<ShellResourceContext> resource_context_; |
90 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 92 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
91 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; | 93 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; |
92 | 94 |
93 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 95 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
94 }; | 96 }; |
95 | 97 |
96 } // namespace content | 98 } // namespace content |
97 | 99 |
98 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ | 100 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |