Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/app/breakpad_mac.h" | 8 #include "chrome/app/breakpad_mac.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/browsing_data_remover.h" | |
| 10 #include "chrome/browser/character_encoding.h" | 11 #include "chrome/browser/character_encoding.h" |
| 11 #include "chrome/browser/chrome_plugin_message_filter.h" | 12 #include "chrome/browser/chrome_plugin_message_filter.h" |
| 12 #include "chrome/browser/chrome_quota_permission_context.h" | 13 #include "chrome/browser/chrome_quota_permission_context.h" |
| 13 #include "chrome/browser/chrome_worker_message_filter.h" | 14 #include "chrome/browser/chrome_worker_message_filter.h" |
| 14 #include "chrome/browser/content_settings/host_content_settings_map.h" | 15 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 15 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 16 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 16 #include "chrome/browser/extensions/extension_info_map.h" | 17 #include "chrome/browser/extensions/extension_info_map.h" |
| 17 #include "chrome/browser/extensions/extension_message_handler.h" | 18 #include "chrome/browser/extensions/extension_message_handler.h" |
| 18 #include "chrome/browser/extensions/extension_service.h" | 19 #include "chrome/browser/extensions/extension_service.h" |
| 19 #include "chrome/browser/google/google_util.h" | 20 #include "chrome/browser/google/google_util.h" |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 629 | 630 |
| 630 #if defined(USE_NSS) | 631 #if defined(USE_NSS) |
| 631 crypto::CryptoModuleBlockingPasswordDelegate* | 632 crypto::CryptoModuleBlockingPasswordDelegate* |
| 632 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 633 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 633 const GURL& url) { | 634 const GURL& url) { |
| 634 return browser::NewCryptoModuleBlockingDialogDelegate( | 635 return browser::NewCryptoModuleBlockingDialogDelegate( |
| 635 browser::kCryptoModulePasswordKeygen, url.host()); | 636 browser::kCryptoModulePasswordKeygen, url.host()); |
| 636 } | 637 } |
| 637 #endif | 638 #endif |
| 638 | 639 |
| 640 void ChromeContentBrowserClient::ClearBrowserCache(RenderViewHost* rvh) { | |
| 641 Profile* profile = rvh->site_instance()->GetProcess()->profile(); | |
| 642 // BrowsingDataRemover takes care of deleting itself when done. | |
|
pfeldman
2011/07/07 14:06:16
Place this comment under the ->Remove call.
| |
| 643 BrowsingDataRemover* remover_ = new BrowsingDataRemover(profile, | |
| 644 static_cast<BrowsingDataRemover::TimePeriod>(0), | |
|
pfeldman
2011/07/07 14:06:16
What does this mean?
| |
| 645 base::Time()); | |
| 646 remover_->Remove(BrowsingDataRemover::REMOVE_CACHE); | |
| 647 } | |
| 648 | |
| 649 void ChromeContentBrowserClient::ClearBrowserCookies(RenderViewHost* rvh) { | |
| 650 Profile* profile = rvh->site_instance()->GetProcess()->profile(); | |
| 651 // BrowsingDataRemover takes care of deleting itself when done. | |
| 652 BrowsingDataRemover* remover_ = new BrowsingDataRemover(profile, | |
| 653 static_cast<BrowsingDataRemover::TimePeriod>(0), | |
| 654 base::Time()); | |
| 655 int remove_mask = BrowsingDataRemover::REMOVE_COOKIES; | |
| 656 remover_->Remove(remove_mask); | |
| 657 } | |
| 658 | |
| 639 } // namespace chrome | 659 } // namespace chrome |
| OLD | NEW |