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_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 scoped_ptr<net::HttpTransactionFactory> http_factory_; | 261 scoped_ptr<net::HttpTransactionFactory> http_factory_; |
262 }; | 262 }; |
263 | 263 |
264 // A URLRequestContext for apps that owns its cookie store and HTTP factory, | 264 // A URLRequestContext for apps that owns its cookie store and HTTP factory, |
265 // to ensure they are deleted. | 265 // to ensure they are deleted. |
266 class AppRequestContext : public net::URLRequestContext { | 266 class AppRequestContext : public net::URLRequestContext { |
267 public: | 267 public: |
268 AppRequestContext(); | 268 AppRequestContext(); |
269 | 269 |
270 void SetCookieStore(net::CookieStore* cookie_store); | 270 void SetCookieStore(scoped_ptr<net::CookieStore> cookie_store); |
271 void SetHttpTransactionFactory( | 271 void SetHttpTransactionFactory( |
272 scoped_ptr<net::HttpTransactionFactory> http_factory); | 272 scoped_ptr<net::HttpTransactionFactory> http_factory); |
273 void SetJobFactory(scoped_ptr<net::URLRequestJobFactory> job_factory); | 273 void SetJobFactory(scoped_ptr<net::URLRequestJobFactory> job_factory); |
274 | 274 |
275 private: | 275 private: |
276 ~AppRequestContext() override; | 276 ~AppRequestContext() override; |
277 | 277 |
278 scoped_refptr<net::CookieStore> cookie_store_; | 278 scoped_ptr<net::CookieStore> cookie_store_; |
279 scoped_ptr<net::HttpTransactionFactory> http_factory_; | 279 scoped_ptr<net::HttpTransactionFactory> http_factory_; |
280 scoped_ptr<net::URLRequestJobFactory> job_factory_; | 280 scoped_ptr<net::URLRequestJobFactory> job_factory_; |
281 }; | 281 }; |
282 | 282 |
283 // Created on the UI thread, read on the IO thread during ProfileIOData lazy | 283 // Created on the UI thread, read on the IO thread during ProfileIOData lazy |
284 // initialization. | 284 // initialization. |
285 struct ProfileParams { | 285 struct ProfileParams { |
286 ProfileParams(); | 286 ProfileParams(); |
287 ~ProfileParams(); | 287 ~ProfileParams(); |
288 | 288 |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 596 |
597 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 597 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
598 bool initialized_on_UI_thread_; | 598 bool initialized_on_UI_thread_; |
599 | 599 |
600 const Profile::ProfileType profile_type_; | 600 const Profile::ProfileType profile_type_; |
601 | 601 |
602 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 602 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
603 }; | 603 }; |
604 | 604 |
605 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 605 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |