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_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 }; | 118 }; |
119 | 119 |
120 typedef base::hash_map<std::string, net::HttpTransactionFactory* > | 120 typedef base::hash_map<std::string, net::HttpTransactionFactory* > |
121 HttpTransactionFactoryMap; | 121 HttpTransactionFactoryMap; |
122 | 122 |
123 ProfileImplIOData(); | 123 ProfileImplIOData(); |
124 virtual ~ProfileImplIOData(); | 124 virtual ~ProfileImplIOData(); |
125 | 125 |
126 virtual void LazyInitializeInternal( | 126 virtual void LazyInitializeInternal( |
127 ProfileParams* profile_params) const OVERRIDE; | 127 ProfileParams* profile_params) const OVERRIDE; |
128 virtual scoped_refptr<ChromeURLRequestContext> InitializeAppRequestContext( | 128 virtual ChromeURLRequestContext* InitializeAppRequestContext( |
129 scoped_refptr<ChromeURLRequestContext> main_context, | 129 ChromeURLRequestContext* main_context, |
130 const std::string& app_id) const OVERRIDE; | 130 const std::string& app_id) const OVERRIDE; |
131 virtual scoped_refptr<ChromeURLRequestContext> | 131 virtual ChromeURLRequestContext* |
132 AcquireMediaRequestContext() const OVERRIDE; | 132 AcquireMediaRequestContext() const OVERRIDE; |
133 virtual scoped_refptr<ChromeURLRequestContext> | 133 virtual ChromeURLRequestContext* |
134 AcquireIsolatedAppRequestContext( | 134 AcquireIsolatedAppRequestContext( |
135 scoped_refptr<ChromeURLRequestContext> main_context, | 135 ChromeURLRequestContext* main_context, |
136 const std::string& app_id) const OVERRIDE; | 136 const std::string& app_id) const OVERRIDE; |
137 | 137 |
138 // Clears the networking history since |time|. | 138 // Clears the networking history since |time|. |
139 void ClearNetworkingHistorySinceOnIOThread(base::Time time); | 139 void ClearNetworkingHistorySinceOnIOThread(base::Time time); |
140 | 140 |
141 // Lazy initialization params. | 141 // Lazy initialization params. |
142 mutable scoped_ptr<LazyParams> lazy_params_; | 142 mutable scoped_ptr<LazyParams> lazy_params_; |
143 | 143 |
144 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 144 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
145 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; | 145 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; |
146 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 146 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
147 | 147 |
148 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 148 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
149 | 149 |
150 mutable scoped_refptr<ChromeURLRequestContext> media_request_context_; | 150 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; |
151 | 151 |
152 // Parameters needed for isolated apps. | 152 // Parameters needed for isolated apps. |
153 FilePath app_path_; | 153 FilePath app_path_; |
154 mutable bool clear_local_state_on_exit_; | 154 mutable bool clear_local_state_on_exit_; |
155 | 155 |
156 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 156 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
157 }; | 157 }; |
158 | 158 |
159 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 159 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |