Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: Fix BrowsingDataRemover tests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 data_reduction_proxy { 17 namespace data_reduction_proxy {
18 class DataReductionProxyNetworkDelegate; 18 class DataReductionProxyNetworkDelegate;
19 } 19 }
20 20
21 namespace ios { 21 namespace ios {
22 class ChromeBrowserState; 22 class ChromeBrowserState;
23 } 23 }
24 24
25 namespace net { 25 namespace net {
26 class CookieStore;
26 class HttpNetworkSession; 27 class HttpNetworkSession;
27 class HttpServerPropertiesManager; 28 class HttpServerPropertiesManager;
28 class HttpTransactionFactory; 29 class HttpTransactionFactory;
29 class SdchManager; 30 class SdchManager;
30 class SdchOwner; 31 class SdchOwner;
31 } // namespace net 32 } // namespace net
32 33
33 class ChromeBrowserStateImplIOData : public ChromeBrowserStateIOData { 34 class ChromeBrowserStateImplIOData : public ChromeBrowserStateIOData {
34 public: 35 public:
35 class Handle { 36 class Handle {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 mutable scoped_refptr<JsonPrefStore> network_json_store_; 141 mutable scoped_refptr<JsonPrefStore> network_json_store_;
141 142
142 mutable scoped_ptr<net::HttpNetworkSession> http_network_session_; 143 mutable scoped_ptr<net::HttpNetworkSession> http_network_session_;
143 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; 144 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
144 145
145 // Same as |ChromeBrowserState::http_server_properties_|, owned there to 146 // Same as |ChromeBrowserState::http_server_properties_|, owned there to
146 // maintain destruction ordering. 147 // maintain destruction ordering.
147 mutable net::HttpServerPropertiesManager* http_server_properties_manager_; 148 mutable net::HttpServerPropertiesManager* http_server_properties_manager_;
148 149
150 mutable scoped_ptr<net::CookieStore> main_cookie_store_;
151
149 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; 152 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_;
150 153
151 mutable scoped_ptr<net::SdchManager> sdch_manager_; 154 mutable scoped_ptr<net::SdchManager> sdch_manager_;
152 mutable scoped_ptr<net::SdchOwner> sdch_policy_; 155 mutable scoped_ptr<net::SdchOwner> sdch_policy_;
153 156
154 // Parameters needed for isolated apps. 157 // Parameters needed for isolated apps.
155 base::FilePath profile_path_; 158 base::FilePath profile_path_;
156 int app_cache_max_size_; 159 int app_cache_max_size_;
157 160
158 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateImplIOData); 161 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateImplIOData);
159 }; 162 };
160 163
161 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_ 164 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698