| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 static ChromeURLRequestContextGetter* CreateOffTheRecordForIsolatedApp( | 210 static ChromeURLRequestContextGetter* CreateOffTheRecordForIsolatedApp( |
| 211 Profile* profile, | 211 Profile* profile, |
| 212 const ProfileIOData* profile_io_data, | 212 const ProfileIOData* profile_io_data, |
| 213 const std::string& app_id); | 213 const std::string& app_id); |
| 214 | 214 |
| 215 // Clean up UI thread resources. This is expected to get called on the UI | 215 // Clean up UI thread resources. This is expected to get called on the UI |
| 216 // thread before the instance is deleted on the IO thread. | 216 // thread before the instance is deleted on the IO thread. |
| 217 void CleanupOnUIThread(); | 217 void CleanupOnUIThread(); |
| 218 | 218 |
| 219 // NotificationObserver implementation. | 219 // NotificationObserver implementation. |
| 220 virtual void Observe(NotificationType type, | 220 virtual void Observe(int type, |
| 221 const NotificationSource& source, | 221 const NotificationSource& source, |
| 222 const NotificationDetails& details); | 222 const NotificationDetails& details); |
| 223 | 223 |
| 224 private: | 224 private: |
| 225 // Must be called on the IO thread. | 225 // Must be called on the IO thread. |
| 226 virtual ~ChromeURLRequestContextGetter(); | 226 virtual ~ChromeURLRequestContextGetter(); |
| 227 | 227 |
| 228 // Registers an observer on |profile|'s preferences which will be used | 228 // Registers an observer on |profile|'s preferences which will be used |
| 229 // to update the context when the default language and charset change. | 229 // to update the context when the default language and charset change. |
| 230 void RegisterPrefsObserver(Profile* profile); | 230 void RegisterPrefsObserver(Profile* profile); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 251 | 251 |
| 252 // NULL if not yet initialized. Otherwise, it is the net::URLRequestContext | 252 // NULL if not yet initialized. Otherwise, it is the net::URLRequestContext |
| 253 // instance that was lazilly created by GetURLRequestContext. | 253 // instance that was lazilly created by GetURLRequestContext. |
| 254 // Access only from the IO thread. | 254 // Access only from the IO thread. |
| 255 scoped_refptr<net::URLRequestContext> url_request_context_; | 255 scoped_refptr<net::URLRequestContext> url_request_context_; |
| 256 | 256 |
| 257 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); | 257 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 260 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |