| 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_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
| 6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void ChangedToOnTheRecord(); | 100 void ChangedToOnTheRecord(); |
| 101 | 101 |
| 102 // Clear all network stack history, including the host cache, as well as | 102 // Clear all network stack history, including the host cache, as well as |
| 103 // speculative data about subresources of visited sites, and startup-time | 103 // speculative data about subresources of visited sites, and startup-time |
| 104 // navigations. | 104 // navigations. |
| 105 void ClearNetworkingHistory(); | 105 void ClearNetworkingHistory(); |
| 106 | 106 |
| 107 protected: | 107 protected: |
| 108 virtual void Init(); | 108 virtual void Init(); |
| 109 virtual void CleanUp(); | 109 virtual void CleanUp(); |
| 110 virtual void CleanUpAfterMessageLoopDestruction(); | |
| 111 | 110 |
| 112 private: | 111 private: |
| 113 static void RegisterPrefs(PrefService* local_state); | 112 static void RegisterPrefs(PrefService* local_state); |
| 114 | 113 |
| 115 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory( | 114 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory( |
| 116 net::HostResolver* resolver); | 115 net::HostResolver* resolver); |
| 117 | 116 |
| 118 void InitNetworkPredictorOnIOThread( | 117 void InitNetworkPredictorOnIOThread( |
| 119 bool prefetching_enabled, | 118 bool prefetching_enabled, |
| 120 base::TimeDelta max_dns_queue_delay, | 119 base::TimeDelta max_dns_queue_delay, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 159 |
| 161 // Note: we user explicit pointers rather than smart pointers to be more | 160 // Note: we user explicit pointers rather than smart pointers to be more |
| 162 // explicit about destruction order, and ensure that there is no chance that | 161 // explicit about destruction order, and ensure that there is no chance that |
| 163 // these observers would be used accidentally after we have begun to tear | 162 // these observers would be used accidentally after we have begun to tear |
| 164 // down. | 163 // down. |
| 165 chrome_browser_net::ConnectInterceptor* speculative_interceptor_; | 164 chrome_browser_net::ConnectInterceptor* speculative_interceptor_; |
| 166 chrome_browser_net::Predictor* predictor_; | 165 chrome_browser_net::Predictor* predictor_; |
| 167 | 166 |
| 168 // Keeps track of all live ChromeURLRequestContextGetters, so the | 167 // Keeps track of all live ChromeURLRequestContextGetters, so the |
| 169 // ChromeURLRequestContexts can be released during | 168 // ChromeURLRequestContexts can be released during |
| 170 // IOThread::CleanUpAfterMessageLoopDestruction(). | 169 // IOThread::CleanUp(). |
| 171 std::list<ChromeURLRequestContextGetter*> url_request_context_getters_; | 170 std::list<ChromeURLRequestContextGetter*> url_request_context_getters_; |
| 172 | 171 |
| 173 DISALLOW_COPY_AND_ASSIGN(IOThread); | 172 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 #endif // CHROME_BROWSER_IO_THREAD_H_ | 175 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |