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 NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool GetResponseAsFilePath(bool take_ownership, | 117 bool GetResponseAsFilePath(bool take_ownership, |
118 FilePath* out_response_path); | 118 FilePath* out_response_path); |
119 | 119 |
120 // Overridden from URLRequest::Delegate: | 120 // Overridden from URLRequest::Delegate: |
121 virtual void OnReceivedRedirect(URLRequest* request, | 121 virtual void OnReceivedRedirect(URLRequest* request, |
122 const GURL& new_url, | 122 const GURL& new_url, |
123 bool* defer_redirect) OVERRIDE; | 123 bool* defer_redirect) OVERRIDE; |
124 virtual void OnResponseStarted(URLRequest* request) OVERRIDE; | 124 virtual void OnResponseStarted(URLRequest* request) OVERRIDE; |
125 virtual void OnReadCompleted(URLRequest* request, | 125 virtual void OnReadCompleted(URLRequest* request, |
126 int bytes_read) OVERRIDE; | 126 int bytes_read) OVERRIDE; |
| 127 virtual void OnCertificateRequested( |
| 128 URLRequest* request, |
| 129 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
127 | 130 |
128 // Overridden from NetworkChangeNotifier::ConnectionTypeObserver: | 131 // Overridden from NetworkChangeNotifier::ConnectionTypeObserver: |
129 virtual void OnConnectionTypeChanged( | 132 virtual void OnConnectionTypeChanged( |
130 NetworkChangeNotifier::ConnectionType type) OVERRIDE; | 133 NetworkChangeNotifier::ConnectionType type) OVERRIDE; |
131 | 134 |
132 URLFetcherDelegate* delegate() const { return delegate_; } | 135 URLFetcherDelegate* delegate() const { return delegate_; } |
133 static void CancelAll(); | 136 static void CancelAll(); |
134 static int GetNumFetcherCores(); | 137 static int GetNumFetcherCores(); |
135 static void SetEnableInterceptionForTests(bool enabled); | 138 static void SetEnableInterceptionForTests(bool enabled); |
136 | 139 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 base::debug::StackTrace stack_trace_; | 420 base::debug::StackTrace stack_trace_; |
418 | 421 |
419 static base::LazyInstance<Registry> g_registry; | 422 static base::LazyInstance<Registry> g_registry; |
420 | 423 |
421 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); | 424 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); |
422 }; | 425 }; |
423 | 426 |
424 } // namespace net | 427 } // namespace net |
425 | 428 |
426 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 429 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
OLD | NEW |