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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 content::BrowserPluginGuestManager* | 426 content::BrowserPluginGuestManager* |
427 OffTheRecordProfileImpl::GetGuestManager() { | 427 OffTheRecordProfileImpl::GetGuestManager() { |
428 return GuestViewManager::FromBrowserContext(this); | 428 return GuestViewManager::FromBrowserContext(this); |
429 } | 429 } |
430 | 430 |
431 quota::SpecialStoragePolicy* | 431 quota::SpecialStoragePolicy* |
432 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { | 432 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { |
433 return GetExtensionSpecialStoragePolicy(); | 433 return GetExtensionSpecialStoragePolicy(); |
434 } | 434 } |
435 | 435 |
| 436 content::PushMessagingService* |
| 437 OffTheRecordProfileImpl::GetPushMessagingService() { |
| 438 // TODO(johnme): Support push messaging in incognito if possible. |
| 439 return NULL; |
| 440 } |
| 441 |
436 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { | 442 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { |
437 return (profile == this) || (profile == profile_); | 443 return (profile == this) || (profile == profile_); |
438 } | 444 } |
439 | 445 |
440 Time OffTheRecordProfileImpl::GetStartTime() const { | 446 Time OffTheRecordProfileImpl::GetStartTime() const { |
441 return start_time_; | 447 return start_time_; |
442 } | 448 } |
443 | 449 |
444 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { | 450 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { |
445 return NULL; | 451 return NULL; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 594 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
589 #if defined(OS_CHROMEOS) | 595 #if defined(OS_CHROMEOS) |
590 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 596 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
591 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 597 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
592 g_browser_process->local_state()); | 598 g_browser_process->local_state()); |
593 } | 599 } |
594 #endif // defined(OS_CHROMEOS) | 600 #endif // defined(OS_CHROMEOS) |
595 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 601 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
596 GetPrefs(), g_browser_process->local_state()); | 602 GetPrefs(), g_browser_process->local_state()); |
597 } | 603 } |
OLD | NEW |