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

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

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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
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/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); 493 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker());
494 return pref_proxy_config_tracker_.get(); 494 return pref_proxy_config_tracker_.get();
495 } 495 }
496 496
497 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() { 497 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() {
498 // We do not store information about websites visited in OTR profiles which 498 // We do not store information about websites visited in OTR profiles which
499 // is necessary for a Predictor, so we do not have a Predictor at all. 499 // is necessary for a Predictor, so we do not have a Predictor at all.
500 return NULL; 500 return NULL;
501 } 501 }
502 502
503 DevToolsNetworkController*
504 OffTheRecordProfileImpl::GetDevToolsNetworkController() {
505 return io_data_->GetDevToolsNetworkController();
506 }
507
503 void OffTheRecordProfileImpl::ClearNetworkingHistorySince( 508 void OffTheRecordProfileImpl::ClearNetworkingHistorySince(
504 base::Time time, 509 base::Time time,
505 const base::Closure& completion) { 510 const base::Closure& completion) {
506 // Nothing to do here, our transport security state is read-only. 511 // Nothing to do here, our transport security state is read-only.
507 // Still, fire the callback to indicate we have finished, otherwise the 512 // Still, fire the callback to indicate we have finished, otherwise the
508 // BrowsingDataRemover will never be destroyed and the dialog will never be 513 // BrowsingDataRemover will never be destroyed and the dialog will never be
509 // closed. We must do this asynchronously in order to avoid reentrancy issues. 514 // closed. We must do this asynchronously in order to avoid reentrancy issues.
510 if (!completion.is_null()) { 515 if (!completion.is_null()) {
511 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion); 516 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion);
512 } 517 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 588 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
584 #if defined(OS_CHROMEOS) 589 #if defined(OS_CHROMEOS)
585 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 590 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
586 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 591 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
587 g_browser_process->local_state()); 592 g_browser_process->local_state());
588 } 593 }
589 #endif // defined(OS_CHROMEOS) 594 #endif // defined(OS_CHROMEOS)
590 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 595 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
591 GetPrefs(), g_browser_process->local_state()); 596 GetPrefs(), g_browser_process->local_state());
592 } 597 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/off_the_record_profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698