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_about_handler.h" | 9 #include "chrome/browser/browser_about_handler.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 remover->Remove(BrowsingDataRemover::REMOVE_CACHE); | 722 remover->Remove(BrowsingDataRemover::REMOVE_CACHE); |
723 // BrowsingDataRemover takes care of deleting itself when done. | 723 // BrowsingDataRemover takes care of deleting itself when done. |
724 } | 724 } |
725 | 725 |
726 void ChromeContentBrowserClient::ClearCookies(RenderViewHost* rvh) { | 726 void ChromeContentBrowserClient::ClearCookies(RenderViewHost* rvh) { |
727 Profile* profile = Profile::FromBrowserContext( | 727 Profile* profile = Profile::FromBrowserContext( |
728 rvh->site_instance()->GetProcess()->browser_context()); | 728 rvh->site_instance()->GetProcess()->browser_context()); |
729 BrowsingDataRemover* remover = new BrowsingDataRemover(profile, | 729 BrowsingDataRemover* remover = new BrowsingDataRemover(profile, |
730 BrowsingDataRemover::EVERYTHING, | 730 BrowsingDataRemover::EVERYTHING, |
731 base::Time()); | 731 base::Time()); |
732 int remove_mask = BrowsingDataRemover::REMOVE_COOKIES; | 732 int remove_mask = BrowsingDataRemover::REMOVE_SITE_DATA; |
733 remover->Remove(remove_mask); | 733 remover->Remove(remove_mask); |
734 // BrowsingDataRemover takes care of deleting itself when done. | 734 // BrowsingDataRemover takes care of deleting itself when done. |
735 } | 735 } |
736 | 736 |
737 FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() { | 737 FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() { |
738 return download_util::GetDefaultDownloadDirectory(); | 738 return download_util::GetDefaultDownloadDirectory(); |
739 } | 739 } |
740 | 740 |
741 net::URLRequestContextGetter* | 741 net::URLRequestContextGetter* |
742 ChromeContentBrowserClient::GetDefaultRequestContextDeprecatedCrBug64339() { | 742 ChromeContentBrowserClient::GetDefaultRequestContextDeprecatedCrBug64339() { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 #if defined(USE_NSS) | 783 #if defined(USE_NSS) |
784 crypto::CryptoModuleBlockingPasswordDelegate* | 784 crypto::CryptoModuleBlockingPasswordDelegate* |
785 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 785 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
786 const GURL& url) { | 786 const GURL& url) { |
787 return browser::NewCryptoModuleBlockingDialogDelegate( | 787 return browser::NewCryptoModuleBlockingDialogDelegate( |
788 browser::kCryptoModulePasswordKeygen, url.host()); | 788 browser::kCryptoModulePasswordKeygen, url.host()); |
789 } | 789 } |
790 #endif | 790 #endif |
791 | 791 |
792 } // namespace chrome | 792 } // namespace chrome |
OLD | NEW |