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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.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/browsing_data/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data/browsing_data_remover.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "components/nacl/browser/pnacl_host.h" 51 #include "components/nacl/browser/pnacl_host.h"
52 #include "components/password_manager/core/browser/password_store.h" 52 #include "components/password_manager/core/browser/password_store.h"
53 #include "components/search_engines/template_url_service.h" 53 #include "components/search_engines/template_url_service.h"
54 #include "content/public/browser/browser_thread.h" 54 #include "content/public/browser/browser_thread.h"
55 #include "content/public/browser/dom_storage_context.h" 55 #include "content/public/browser/dom_storage_context.h"
56 #include "content/public/browser/download_manager.h" 56 #include "content/public/browser/download_manager.h"
57 #include "content/public/browser/local_storage_usage_info.h" 57 #include "content/public/browser/local_storage_usage_info.h"
58 #include "content/public/browser/notification_service.h" 58 #include "content/public/browser/notification_service.h"
59 #include "content/public/browser/plugin_data_remover.h" 59 #include "content/public/browser/plugin_data_remover.h"
60 #include "content/public/browser/session_storage_usage_info.h" 60 #include "content/public/browser/session_storage_usage_info.h"
61 #include "content/public/browser/ssl_host_state_delegate.h"
61 #include "content/public/browser/storage_partition.h" 62 #include "content/public/browser/storage_partition.h"
62 #include "content/public/browser/user_metrics.h" 63 #include "content/public/browser/user_metrics.h"
63 #include "net/base/net_errors.h" 64 #include "net/base/net_errors.h"
64 #include "net/base/sdch_manager.h" 65 #include "net/base/sdch_manager.h"
65 #include "net/cookies/cookie_store.h" 66 #include "net/cookies/cookie_store.h"
66 #include "net/disk_cache/disk_cache.h" 67 #include "net/disk_cache/disk_cache.h"
67 #include "net/http/http_cache.h" 68 #include "net/http/http_cache.h"
68 #include "net/http/transport_security_state.h" 69 #include "net/http/transport_security_state.h"
69 #include "net/ssl/channel_id_service.h" 70 #include "net/ssl/channel_id_service.h"
70 #include "net/ssl/channel_id_store.h" 71 #include "net/ssl/channel_id_store.h"
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 BrowserThread::PostTaskAndReply( 399 BrowserThread::PostTaskAndReply(
399 BrowserThread::FILE, 400 BrowserThread::FILE,
400 FROM_HERE, 401 FROM_HERE,
401 base::Bind( 402 base::Bind(
402 &WebRtcLogUtil::DeleteOldAndRecentWebRtcLogFiles, 403 &WebRtcLogUtil::DeleteOldAndRecentWebRtcLogFiles,
403 WebRtcLogList::GetWebRtcLogDirectoryForProfile(profile_->GetPath()), 404 WebRtcLogList::GetWebRtcLogDirectoryForProfile(profile_->GetPath()),
404 delete_begin_), 405 delete_begin_),
405 base::Bind(&BrowsingDataRemover::OnClearedWebRtcLogs, 406 base::Bind(&BrowsingDataRemover::OnClearedWebRtcLogs,
406 base::Unretained(this))); 407 base::Unretained(this)));
407 #endif 408 #endif
409
410 // The SSL Host State that tracks SSL interstitial "proceed" decisions may
411 // include origins that the user has visited, so it must be cleared.
412 if (profile_->GetSSLHostStateDelegate())
413 profile_->GetSSLHostStateDelegate()->Clear();
408 } 414 }
409 415
410 if ((remove_mask & REMOVE_DOWNLOADS) && may_delete_history) { 416 if ((remove_mask & REMOVE_DOWNLOADS) && may_delete_history) {
411 content::RecordAction(UserMetricsAction("ClearBrowsingData_Downloads")); 417 content::RecordAction(UserMetricsAction("ClearBrowsingData_Downloads"));
412 content::DownloadManager* download_manager = 418 content::DownloadManager* download_manager =
413 BrowserContext::GetDownloadManager(profile_); 419 BrowserContext::GetDownloadManager(profile_);
414 download_manager->RemoveDownloadsBetween(delete_begin_, delete_end_); 420 download_manager->RemoveDownloadsBetween(delete_begin_, delete_end_);
415 DownloadPrefs* download_prefs = DownloadPrefs::FromDownloadManager( 421 DownloadPrefs* download_prefs = DownloadPrefs::FromDownloadManager(
416 download_manager); 422 download_manager);
417 download_prefs->SetSaveFilePath(download_prefs->DownloadPath()); 423 download_prefs->SetSaveFilePath(download_prefs->DownloadPath());
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 waiting_for_clear_webrtc_logs_ = false; 1180 waiting_for_clear_webrtc_logs_ = false;
1175 NotifyAndDeleteIfDone(); 1181 NotifyAndDeleteIfDone();
1176 } 1182 }
1177 #endif 1183 #endif
1178 1184
1179 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { 1185 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() {
1180 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1186 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1181 waiting_for_clear_domain_reliability_monitor_ = false; 1187 waiting_for_clear_domain_reliability_monitor_ = false;
1182 NotifyAndDeleteIfDone(); 1188 NotifyAndDeleteIfDone();
1183 } 1189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698