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> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/prefs/pref_change_registrar.h" | 13 #include "chrome/browser/prefs/pref_change_registrar.h" |
14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
16 #include "net/url_request/url_request_context.h" | 16 #include "net/url_request/url_request_context.h" |
17 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
18 | 18 |
19 class ChromeURLDataManagerBackend; | 19 class ChromeURLDataManagerBackend; |
20 class ChromeURLRequestContextFactory; | 20 class ChromeURLRequestContextFactory; |
21 class IOThread; | 21 class IOThread; |
22 class Profile; | 22 class Profile; |
23 class ProfileIOData; | 23 class ProfileIOData; |
24 namespace base { | 24 namespace base { |
25 class WaitableEvent; | 25 class WaitableEvent; |
26 } | 26 } |
27 namespace net { | |
28 class NetworkDelegate; | |
29 } | |
30 | 27 |
31 // Subclass of net::URLRequestContext which can be used to store extra | 28 // Subclass of net::URLRequestContext which can be used to store extra |
32 // information for requests. | 29 // information for requests. |
33 // | 30 // |
34 // All methods of this class must be called from the IO thread, | 31 // All methods of this class must be called from the IO thread, |
35 // including the constructor and destructor. | 32 // including the constructor and destructor. |
36 class ChromeURLRequestContext : public net::URLRequestContext { | 33 class ChromeURLRequestContext : public net::URLRequestContext { |
37 public: | 34 public: |
38 ChromeURLRequestContext(); | 35 ChromeURLRequestContext(); |
39 | 36 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 191 |
195 // NULL if not yet initialized. Otherwise, it is the net::URLRequestContext | 192 // NULL if not yet initialized. Otherwise, it is the net::URLRequestContext |
196 // instance that was lazily created by GetURLRequestContext(). | 193 // instance that was lazily created by GetURLRequestContext(). |
197 // Access only from the IO thread. | 194 // Access only from the IO thread. |
198 base::WeakPtr<net::URLRequestContext> url_request_context_; | 195 base::WeakPtr<net::URLRequestContext> url_request_context_; |
199 | 196 |
200 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); | 197 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); |
201 }; | 198 }; |
202 | 199 |
203 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 200 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
OLD | NEW |