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

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

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed broken include Created 6 years, 4 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 11 matching lines...) Expand all
22 #include "chrome/browser/download/download_service_factory.h" 22 #include "chrome/browser/download/download_service_factory.h"
23 #include "chrome/browser/extensions/extension_special_storage_policy.h" 23 #include "chrome/browser/extensions/extension_special_storage_policy.h"
24 #include "chrome/browser/io_thread.h" 24 #include "chrome/browser/io_thread.h"
25 #include "chrome/browser/net/chrome_url_request_context_getter.h" 25 #include "chrome/browser/net/chrome_url_request_context_getter.h"
26 #include "chrome/browser/net/pref_proxy_config_tracker.h" 26 #include "chrome/browser/net/pref_proxy_config_tracker.h"
27 #include "chrome/browser/net/proxy_service_factory.h" 27 #include "chrome/browser/net/proxy_service_factory.h"
28 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" 28 #include "chrome/browser/plugins/chrome_plugin_service_filter.h"
29 #include "chrome/browser/plugins/plugin_prefs.h" 29 #include "chrome/browser/plugins/plugin_prefs.h"
30 #include "chrome/browser/prefs/incognito_mode_prefs.h" 30 #include "chrome/browser/prefs/incognito_mode_prefs.h"
31 #include "chrome/browser/prefs/pref_service_syncable.h" 31 #include "chrome/browser/prefs/pref_service_syncable.h"
32 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h"
33 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h"
32 #include "chrome/browser/themes/theme_service.h" 34 #include "chrome/browser/themes/theme_service.h"
33 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 35 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
34 #include "chrome/common/chrome_constants.h" 36 #include "chrome/common/chrome_constants.h"
35 #include "chrome/common/chrome_paths.h" 37 #include "chrome/common/chrome_paths.h"
36 #include "chrome/common/chrome_switches.h" 38 #include "chrome/common/chrome_switches.h"
37 #include "chrome/common/pref_names.h" 39 #include "chrome/common/pref_names.h"
38 #include "chrome/common/render_messages.h" 40 #include "chrome/common/render_messages.h"
39 #include "components/keyed_service/content/browser_context_dependency_manager.h" 41 #include "components/keyed_service/content/browser_context_dependency_manager.h"
40 #include "components/user_prefs/user_prefs.h" 42 #include "components/user_prefs/user_prefs.h"
41 #include "content/public/browser/browser_thread.h" 43 #include "content/public/browser/browser_thread.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 #if defined(ENABLE_EXTENSIONS) 355 #if defined(ENABLE_EXTENSIONS)
354 ExtensionService* extension_service = 356 ExtensionService* extension_service =
355 extensions::ExtensionSystem::Get(this)->extension_service(); 357 extensions::ExtensionSystem::Get(this)->extension_service();
356 if (extension_service) 358 if (extension_service)
357 host_content_settings_map_->RegisterExtensionService(extension_service); 359 host_content_settings_map_->RegisterExtensionService(extension_service);
358 #endif 360 #endif
359 } 361 }
360 return host_content_settings_map_.get(); 362 return host_content_settings_map_.get();
361 } 363 }
362 364
363 content::BrowserPluginGuestManager* 365 content::BrowserPluginGuestManager* OffTheRecordProfileImpl::GetGuestManager() {
364 OffTheRecordProfileImpl::GetGuestManager() {
365 #if defined(ENABLE_EXTENSIONS) 366 #if defined(ENABLE_EXTENSIONS)
366 return GuestViewManager::FromBrowserContext(this); 367 return GuestViewManager::FromBrowserContext(this);
367 #else 368 #else
368 return NULL; 369 return NULL;
369 #endif 370 #endif
370 } 371 }
371 372
372 quota::SpecialStoragePolicy* 373 quota::SpecialStoragePolicy*
373 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { 374 OffTheRecordProfileImpl::GetSpecialStoragePolicy() {
374 return GetExtensionSpecialStoragePolicy(); 375 return GetExtensionSpecialStoragePolicy();
375 } 376 }
376 377
377 content::PushMessagingService* 378 content::PushMessagingService*
378 OffTheRecordProfileImpl::GetPushMessagingService() { 379 OffTheRecordProfileImpl::GetPushMessagingService() {
379 // TODO(johnme): Support push messaging in incognito if possible. 380 // TODO(johnme): Support push messaging in incognito if possible.
380 return NULL; 381 return NULL;
381 } 382 }
382 383
384 content::SSLHostStateDelegate*
385 OffTheRecordProfileImpl::GetSSLHostStateDelegate() {
386 return ChromeSSLHostStateDelegateFactory::GetForProfile(this);
387 }
388
383 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { 389 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) {
384 return (profile == this) || (profile == profile_); 390 return (profile == this) || (profile == profile_);
385 } 391 }
386 392
387 Time OffTheRecordProfileImpl::GetStartTime() const { 393 Time OffTheRecordProfileImpl::GetStartTime() const {
388 return start_time_; 394 return start_time_;
389 } 395 }
390 396
391 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { 397 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() {
392 return NULL; 398 return NULL;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 531 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
526 #if defined(OS_CHROMEOS) 532 #if defined(OS_CHROMEOS)
527 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 533 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
528 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 534 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
529 g_browser_process->local_state()); 535 g_browser_process->local_state());
530 } 536 }
531 #endif // defined(OS_CHROMEOS) 537 #endif // defined(OS_CHROMEOS)
532 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 538 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
533 GetPrefs(), g_browser_process->local_state()); 539 GetPrefs(), g_browser_process->local_state());
534 } 540 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698