| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return transport_security_state_.get(); | 112 return transport_security_state_.get(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 chrome_browser_net::HttpServerPropertiesManager* | 115 chrome_browser_net::HttpServerPropertiesManager* |
| 116 http_server_properties_manager() const; | 116 http_server_properties_manager() const; |
| 117 | 117 |
| 118 protected: | 118 protected: |
| 119 class AppRequestContext : public ChromeURLRequestContext { | 119 class AppRequestContext : public ChromeURLRequestContext { |
| 120 public: | 120 public: |
| 121 AppRequestContext(); | 121 AppRequestContext(); |
| 122 virtual ~AppRequestContext(); | |
| 123 | 122 |
| 124 void SetCookieStore(net::CookieStore* cookie_store); | 123 void SetCookieStore(net::CookieStore* cookie_store); |
| 125 void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory); | 124 void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory); |
| 126 | 125 |
| 127 private: | 126 private: |
| 127 virtual ~AppRequestContext(); |
| 128 |
| 128 scoped_refptr<net::CookieStore> cookie_store_; | 129 scoped_refptr<net::CookieStore> cookie_store_; |
| 129 scoped_ptr<net::HttpTransactionFactory> http_factory_; | 130 scoped_ptr<net::HttpTransactionFactory> http_factory_; |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 // Created on the UI thread, read on the IO thread during ProfileIOData lazy | 133 // Created on the UI thread, read on the IO thread during ProfileIOData lazy |
| 133 // initialization. | 134 // initialization. |
| 134 struct ProfileParams { | 135 struct ProfileParams { |
| 135 ProfileParams(); | 136 ProfileParams(); |
| 136 ~ProfileParams(); | 137 ~ProfileParams(); |
| 137 | 138 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 // One AppRequestContext per isolated app. | 317 // One AppRequestContext per isolated app. |
| 317 mutable AppRequestContextMap app_request_context_map_; | 318 mutable AppRequestContextMap app_request_context_map_; |
| 318 | 319 |
| 319 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 320 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 320 bool initialized_on_UI_thread_; | 321 bool initialized_on_UI_thread_; |
| 321 | 322 |
| 322 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 323 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 323 }; | 324 }; |
| 324 | 325 |
| 325 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 326 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |