OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |