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

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

Issue 2772283003: Make url_request_context dumps include context names (Closed)
Patch Set: Revert back to an explicit list Created 3 years, 8 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | net/base/sdch_manager_unittest.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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 incognito_availibility_pref_.Init( 535 incognito_availibility_pref_.Init(
536 prefs::kIncognitoModeAvailability, pref_service); 536 prefs::kIncognitoModeAvailability, pref_service);
537 incognito_availibility_pref_.MoveToThread(io_task_runner); 537 incognito_availibility_pref_.MoveToThread(io_task_runner);
538 538
539 // We need to make sure that content initializes its own data structures that 539 // We need to make sure that content initializes its own data structures that
540 // are associated with each ResourceContext because we might post this 540 // are associated with each ResourceContext because we might post this
541 // object to the IO thread after this function. 541 // object to the IO thread after this function.
542 BrowserContext::EnsureResourceContextInitialized(profile); 542 BrowserContext::EnsureResourceContextInitialized(profile);
543 } 543 }
544 544
545 ProfileIOData::MediaRequestContext::MediaRequestContext( 545 ProfileIOData::MediaRequestContext::MediaRequestContext(const char* name) {
546 const std::string& name) {
547 set_name(name); 546 set_name(name);
548 } 547 }
549 548
550 void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory( 549 void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory(
551 std::unique_ptr<net::HttpTransactionFactory> http_factory) { 550 std::unique_ptr<net::HttpTransactionFactory> http_factory) {
552 http_factory_ = std::move(http_factory); 551 http_factory_ = std::move(http_factory);
553 set_http_transaction_factory(http_factory_.get()); 552 set_http_transaction_factory(http_factory_.get());
554 } 553 }
555 554
556 ProfileIOData::MediaRequestContext::~MediaRequestContext() { 555 ProfileIOData::MediaRequestContext::~MediaRequestContext() {
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 void ProfileIOData::SetCookieSettingsForTesting( 1320 void ProfileIOData::SetCookieSettingsForTesting(
1322 content_settings::CookieSettings* cookie_settings) { 1321 content_settings::CookieSettings* cookie_settings) {
1323 DCHECK(!cookie_settings_.get()); 1322 DCHECK(!cookie_settings_.get());
1324 cookie_settings_ = cookie_settings; 1323 cookie_settings_ = cookie_settings;
1325 } 1324 }
1326 1325
1327 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1326 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1328 const GURL& url) const { 1327 const GURL& url) const {
1329 return url_blacklist_manager_->GetURLBlacklistState(url); 1328 return url_blacklist_manager_->GetURLBlacklistState(url);
1330 } 1329 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | net/base/sdch_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698