| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 static ChromeURLRequestContextGetter* CreateOriginalForExtensions( | 139 static ChromeURLRequestContextGetter* CreateOriginalForExtensions( |
| 140 Profile* profile, const ProfileIOData* profile_io_data); | 140 Profile* profile, const ProfileIOData* profile_io_data); |
| 141 | 141 |
| 142 // Create an instance for an original profile for an app with isolated | 142 // Create an instance for an original profile for an app with isolated |
| 143 // storage. This is expected to get called on UI thread. | 143 // storage. This is expected to get called on UI thread. |
| 144 static ChromeURLRequestContextGetter* CreateOriginalForIsolatedApp( | 144 static ChromeURLRequestContextGetter* CreateOriginalForIsolatedApp( |
| 145 Profile* profile, | 145 Profile* profile, |
| 146 const ProfileIOData* profile_io_data, | 146 const ProfileIOData* profile_io_data, |
| 147 const std::string& app_id); | 147 const std::string& app_id); |
| 148 | 148 |
| 149 // Create an instance for an original profile for media with isolated |
| 150 // storage. This is expected to get called on UI thread. |
| 151 static ChromeURLRequestContextGetter* CreateOriginalForIsolatedMedia( |
| 152 Profile* profile, |
| 153 const ProfileIOData* profile_io_data, |
| 154 const std::string& app_id); |
| 155 |
| 149 // Create an instance for use with an OTR profile. This is expected to get | 156 // Create an instance for use with an OTR profile. This is expected to get |
| 150 // called on the UI thread. | 157 // called on the UI thread. |
| 151 static ChromeURLRequestContextGetter* CreateOffTheRecord( | 158 static ChromeURLRequestContextGetter* CreateOffTheRecord( |
| 152 Profile* profile, const ProfileIOData* profile_io_data); | 159 Profile* profile, const ProfileIOData* profile_io_data); |
| 153 | 160 |
| 154 // Create an instance for an OTR profile for extensions. This is expected | 161 // Create an instance for an OTR profile for extensions. This is expected |
| 155 // to get called on UI thread. | 162 // to get called on UI thread. |
| 156 static ChromeURLRequestContextGetter* CreateOffTheRecordForExtensions( | 163 static ChromeURLRequestContextGetter* CreateOffTheRecordForExtensions( |
| 157 Profile* profile, const ProfileIOData* profile_io_data); | 164 Profile* profile, const ProfileIOData* profile_io_data); |
| 158 | 165 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 200 |
| 194 // NULL if not yet initialized. Otherwise, it is the ChromeURLRequestContext | 201 // NULL if not yet initialized. Otherwise, it is the ChromeURLRequestContext |
| 195 // instance that was lazily created by GetURLRequestContext(). | 202 // instance that was lazily created by GetURLRequestContext(). |
| 196 // Access only from the IO thread. | 203 // Access only from the IO thread. |
| 197 base::WeakPtr<ChromeURLRequestContext> url_request_context_; | 204 base::WeakPtr<ChromeURLRequestContext> url_request_context_; |
| 198 | 205 |
| 199 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); | 206 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); |
| 200 }; | 207 }; |
| 201 | 208 |
| 202 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 209 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |