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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge 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 (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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698