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

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

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 #include "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 } 561 }
562 562
563 ProfileIOData::MediaRequestContext::~MediaRequestContext() { 563 ProfileIOData::MediaRequestContext::~MediaRequestContext() {
564 AssertNoURLRequests(); 564 AssertNoURLRequests();
565 } 565 }
566 566
567 ProfileIOData::AppRequestContext::AppRequestContext() { 567 ProfileIOData::AppRequestContext::AppRequestContext() {
568 } 568 }
569 569
570 void ProfileIOData::AppRequestContext::SetCookieStore( 570 void ProfileIOData::AppRequestContext::SetCookieStore(
571 net::CookieStore* cookie_store) { 571 scoped_ptr<net::CookieStore> cookie_store) {
572 cookie_store_ = cookie_store; 572 cookie_store_ = std::move(cookie_store);
573 set_cookie_store(cookie_store); 573 set_cookie_store(cookie_store_.get());
574 } 574 }
575 575
576 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory( 576 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory(
577 scoped_ptr<net::HttpTransactionFactory> http_factory) { 577 scoped_ptr<net::HttpTransactionFactory> http_factory) {
578 http_factory_ = std::move(http_factory); 578 http_factory_ = std::move(http_factory);
579 set_http_transaction_factory(http_factory_.get()); 579 set_http_transaction_factory(http_factory_.get());
580 } 580 }
581 581
582 void ProfileIOData::AppRequestContext::SetJobFactory( 582 void ProfileIOData::AppRequestContext::SetJobFactory(
583 scoped_ptr<net::URLRequestJobFactory> job_factory) { 583 scoped_ptr<net::URLRequestJobFactory> job_factory) {
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 make_scoped_ptr(new DevToolsNetworkTransactionFactory( 1319 make_scoped_ptr(new DevToolsNetworkTransactionFactory(
1320 network_controller_handle_.GetController(), shared_session)), 1320 network_controller_handle_.GetController(), shared_session)),
1321 std::move(backend), true /* set_up_quic_server_info */)); 1321 std::move(backend), true /* set_up_quic_server_info */));
1322 } 1322 }
1323 1323
1324 void ProfileIOData::SetCookieSettingsForTesting( 1324 void ProfileIOData::SetCookieSettingsForTesting(
1325 content_settings::CookieSettings* cookie_settings) { 1325 content_settings::CookieSettings* cookie_settings) {
1326 DCHECK(!cookie_settings_.get()); 1326 DCHECK(!cookie_settings_.get());
1327 cookie_settings_ = cookie_settings; 1327 cookie_settings_ = cookie_settings;
1328 } 1328 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698