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

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

Issue 379293002: Add AssertNoURLRequests() to URLRequestContext subclass destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to two omitted subclasses of subclasses of URLRequestContext. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 527
528 ProfileIOData::MediaRequestContext::MediaRequestContext() { 528 ProfileIOData::MediaRequestContext::MediaRequestContext() {
529 } 529 }
530 530
531 void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory( 531 void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory(
532 scoped_ptr<net::HttpTransactionFactory> http_factory) { 532 scoped_ptr<net::HttpTransactionFactory> http_factory) {
533 http_factory_ = http_factory.Pass(); 533 http_factory_ = http_factory.Pass();
534 set_http_transaction_factory(http_factory_.get()); 534 set_http_transaction_factory(http_factory_.get());
535 } 535 }
536 536
537 ProfileIOData::MediaRequestContext::~MediaRequestContext() {} 537 ProfileIOData::MediaRequestContext::~MediaRequestContext() {
538 AssertNoURLRequests();
539 }
538 540
539 ProfileIOData::AppRequestContext::AppRequestContext() { 541 ProfileIOData::AppRequestContext::AppRequestContext() {
540 } 542 }
541 543
542 void ProfileIOData::AppRequestContext::SetCookieStore( 544 void ProfileIOData::AppRequestContext::SetCookieStore(
543 net::CookieStore* cookie_store) { 545 net::CookieStore* cookie_store) {
544 cookie_store_ = cookie_store; 546 cookie_store_ = cookie_store;
545 set_cookie_store(cookie_store); 547 set_cookie_store(cookie_store);
546 } 548 }
547 549
548 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory( 550 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory(
549 scoped_ptr<net::HttpTransactionFactory> http_factory) { 551 scoped_ptr<net::HttpTransactionFactory> http_factory) {
550 http_factory_ = http_factory.Pass(); 552 http_factory_ = http_factory.Pass();
551 set_http_transaction_factory(http_factory_.get()); 553 set_http_transaction_factory(http_factory_.get());
552 } 554 }
553 555
554 void ProfileIOData::AppRequestContext::SetJobFactory( 556 void ProfileIOData::AppRequestContext::SetJobFactory(
555 scoped_ptr<net::URLRequestJobFactory> job_factory) { 557 scoped_ptr<net::URLRequestJobFactory> job_factory) {
556 job_factory_ = job_factory.Pass(); 558 job_factory_ = job_factory.Pass();
557 set_job_factory(job_factory_.get()); 559 set_job_factory(job_factory_.get());
558 } 560 }
559 561
560 ProfileIOData::AppRequestContext::~AppRequestContext() {} 562 ProfileIOData::AppRequestContext::~AppRequestContext() {
563 AssertNoURLRequests();
564 }
561 565
562 ProfileIOData::ProfileParams::ProfileParams() 566 ProfileIOData::ProfileParams::ProfileParams()
563 : io_thread(NULL), 567 : io_thread(NULL),
564 profile(NULL) { 568 profile(NULL) {
565 } 569 }
566 570
567 ProfileIOData::ProfileParams::~ProfileParams() {} 571 ProfileIOData::ProfileParams::~ProfileParams() {}
568 572
569 ProfileIOData::ProfileIOData(Profile::ProfileType profile_type) 573 ProfileIOData::ProfileIOData(Profile::ProfileType profile_type)
570 : initialized_(false), 574 : initialized_(false),
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 void ProfileIOData::SetCookieSettingsForTesting( 1252 void ProfileIOData::SetCookieSettingsForTesting(
1249 CookieSettings* cookie_settings) { 1253 CookieSettings* cookie_settings) {
1250 DCHECK(!cookie_settings_.get()); 1254 DCHECK(!cookie_settings_.get());
1251 cookie_settings_ = cookie_settings; 1255 cookie_settings_ = cookie_settings;
1252 } 1256 }
1253 1257
1254 void ProfileIOData::set_signin_names_for_testing( 1258 void ProfileIOData::set_signin_names_for_testing(
1255 SigninNamesOnIOThread* signin_names) { 1259 SigninNamesOnIOThread* signin_names) {
1256 signin_names_.reset(signin_names); 1260 signin_names_.reset(signin_names);
1257 } 1261 }
OLDNEW
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698