OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_ | 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_ |
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_ | 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "components/prefs/pref_store.h" | 11 #include "components/prefs/pref_store.h" |
12 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" | 12 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" |
13 #include "ios/chrome/browser/net/net_types.h" | 13 #include "ios/chrome/browser/net/net_types.h" |
14 | 14 |
15 class JsonPrefStore; | 15 class JsonPrefStore; |
16 | 16 |
17 namespace ios { | 17 namespace ios { |
18 class ChromeBrowserState; | 18 class ChromeBrowserState; |
19 } | 19 } |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 class CookieStore; | 22 class CookieStore; |
23 class HttpNetworkSession; | 23 class HttpNetworkSession; |
24 class HttpServerPropertiesManager; | 24 class HttpServerPropertiesManager; |
25 class HttpTransactionFactory; | 25 class HttpTransactionFactory; |
26 class SdchManager; | |
27 class SdchOwner; | |
28 } // namespace net | 26 } // namespace net |
29 | 27 |
30 class ChromeBrowserStateImplIOData : public ChromeBrowserStateIOData { | 28 class ChromeBrowserStateImplIOData : public ChromeBrowserStateIOData { |
31 public: | 29 public: |
32 class Handle { | 30 class Handle { |
33 public: | 31 public: |
34 explicit Handle(ios::ChromeBrowserState* browser_state); | 32 explicit Handle(ios::ChromeBrowserState* browser_state); |
35 ~Handle(); | 33 ~Handle(); |
36 | 34 |
37 // Init() must be called before ~Handle(). It records most of the | 35 // Init() must be called before ~Handle(). It records most of the |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 mutable std::unique_ptr<net::HttpTransactionFactory> main_http_factory_; | 138 mutable std::unique_ptr<net::HttpTransactionFactory> main_http_factory_; |
141 | 139 |
142 // Same as |ChromeBrowserState::http_server_properties_|, owned there to | 140 // Same as |ChromeBrowserState::http_server_properties_|, owned there to |
143 // maintain destruction ordering. | 141 // maintain destruction ordering. |
144 mutable net::HttpServerPropertiesManager* http_server_properties_manager_; | 142 mutable net::HttpServerPropertiesManager* http_server_properties_manager_; |
145 | 143 |
146 mutable std::unique_ptr<net::CookieStore> main_cookie_store_; | 144 mutable std::unique_ptr<net::CookieStore> main_cookie_store_; |
147 | 145 |
148 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; | 146 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; |
149 | 147 |
150 mutable std::unique_ptr<net::SdchManager> sdch_manager_; | |
151 mutable std::unique_ptr<net::SdchOwner> sdch_policy_; | |
152 | |
153 // Parameters needed for isolated apps. | 148 // Parameters needed for isolated apps. |
154 base::FilePath profile_path_; | 149 base::FilePath profile_path_; |
155 int app_cache_max_size_; | 150 int app_cache_max_size_; |
156 | 151 |
157 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateImplIOData); | 152 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateImplIOData); |
158 }; | 153 }; |
159 | 154 |
160 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_ | 155 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_ |
OLD | NEW |