| 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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Returns a getter for the URLRequestContext. Only called on the UI thread. | 104 // Returns a getter for the URLRequestContext. Only called on the UI thread. |
| 105 net::URLRequestContextGetter* system_url_request_context_getter(); | 105 net::URLRequestContextGetter* system_url_request_context_getter(); |
| 106 | 106 |
| 107 // Clears the host cache. Intended to be used to prevent exposing recently | 107 // Clears the host cache. Intended to be used to prevent exposing recently |
| 108 // visited sites on about:net-internals/#dns and about:dns pages. Must be | 108 // visited sites on about:net-internals/#dns and about:dns pages. Must be |
| 109 // called on the IO thread. | 109 // called on the IO thread. |
| 110 void ClearHostCache(); | 110 void ClearHostCache(); |
| 111 | 111 |
| 112 protected: | 112 protected: |
| 113 virtual void Init(); | 113 virtual void Init() OVERRIDE; |
| 114 virtual void CleanUp(); | 114 virtual void CleanUp() OVERRIDE; |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 // Provide SystemURLRequestContextGetter with access to | 117 // Provide SystemURLRequestContextGetter with access to |
| 118 // InitSystemRequestContext(). | 118 // InitSystemRequestContext(). |
| 119 friend class SystemURLRequestContextGetter; | 119 friend class SystemURLRequestContextGetter; |
| 120 | 120 |
| 121 static void RegisterPrefs(PrefService* local_state); | 121 static void RegisterPrefs(PrefService* local_state); |
| 122 | 122 |
| 123 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory( | 123 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory( |
| 124 net::HostResolver* resolver); | 124 net::HostResolver* resolver); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 system_url_request_context_getter_; | 178 system_url_request_context_getter_; |
| 179 | 179 |
| 180 net::SdchManager* sdch_manager_; | 180 net::SdchManager* sdch_manager_; |
| 181 | 181 |
| 182 base::WeakPtrFactory<IOThread> weak_factory_; | 182 base::WeakPtrFactory<IOThread> weak_factory_; |
| 183 | 183 |
| 184 DISALLOW_COPY_AND_ASSIGN(IOThread); | 184 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 #endif // CHROME_BROWSER_IO_THREAD_H_ | 187 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |