| 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" |
| 11 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 11 #include "base/prefs/public/pref_change_registrar.h" |
| 12 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
| 13 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
| 14 #include "net/url_request/url_request_context.h" | 14 #include "net/url_request/url_request_context.h" |
| 15 #include "net/url_request/url_request_context_getter.h" | 15 #include "net/url_request/url_request_context_getter.h" |
| 16 #include "net/url_request/url_request_job_factory.h" | 16 #include "net/url_request/url_request_job_factory.h" |
| 17 | 17 |
| 18 class ChromeURLDataManagerBackend; | 18 class ChromeURLDataManagerBackend; |
| 19 class ChromeURLRequestContextFactory; | 19 class ChromeURLRequestContextFactory; |
| 20 class IOThread; | 20 class IOThread; |
| 21 class Profile; | 21 class Profile; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 // NULL if not yet initialized. Otherwise, it is the ChromeURLRequestContext | 207 // NULL if not yet initialized. Otherwise, it is the ChromeURLRequestContext |
| 208 // instance that was lazily created by GetURLRequestContext(). | 208 // instance that was lazily created by GetURLRequestContext(). |
| 209 // Access only from the IO thread. | 209 // Access only from the IO thread. |
| 210 base::WeakPtr<ChromeURLRequestContext> url_request_context_; | 210 base::WeakPtr<ChromeURLRequestContext> url_request_context_; |
| 211 | 211 |
| 212 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); | 212 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 215 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |