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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2812113004: Write last_modified date to Content Settings in the PrefProvider (Closed)
Patch Set: Fix Android compilation Created 3 years, 8 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
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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 867
868 #if BUILDFLAG(ENABLE_EXTENSIONS) 868 #if BUILDFLAG(ENABLE_EXTENSIONS)
869 // By default, JavaScript, images and autoplay are enabled in guest content. 869 // By default, JavaScript, images and autoplay are enabled in guest content.
870 void GetGuestViewDefaultContentSettingRules( 870 void GetGuestViewDefaultContentSettingRules(
871 bool incognito, 871 bool incognito,
872 RendererContentSettingRules* rules) { 872 RendererContentSettingRules* rules) {
873 rules->image_rules.push_back( 873 rules->image_rules.push_back(
874 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(), 874 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(),
875 ContentSettingsPattern::Wildcard(), 875 ContentSettingsPattern::Wildcard(),
876 CONTENT_SETTING_ALLOW, 876 CONTENT_SETTING_ALLOW,
877 base::Time(),
877 std::string(), 878 std::string(),
878 incognito)); 879 incognito));
879 880
880 rules->script_rules.push_back( 881 rules->script_rules.push_back(
881 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(), 882 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(),
882 ContentSettingsPattern::Wildcard(), 883 ContentSettingsPattern::Wildcard(),
883 CONTENT_SETTING_ALLOW, 884 CONTENT_SETTING_ALLOW,
885 base::Time(),
884 std::string(), 886 std::string(),
885 incognito)); 887 incognito));
886 rules->autoplay_rules.push_back( 888 rules->autoplay_rules.push_back(
887 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(), 889 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(),
888 ContentSettingsPattern::Wildcard(), 890 ContentSettingsPattern::Wildcard(),
889 CONTENT_SETTING_ALLOW, 891 CONTENT_SETTING_ALLOW,
892 base::Time(),
890 std::string(), 893 std::string(),
891 incognito)); 894 incognito));
892 } 895 }
893 #endif // BUILDFLAG(ENABLE_EXTENSIONS) 896 #endif // BUILDFLAG(ENABLE_EXTENSIONS)
894 897
895 void CreateUsbDeviceManager( 898 void CreateUsbDeviceManager(
896 RenderFrameHost* render_frame_host, 899 RenderFrameHost* render_frame_host,
897 mojo::InterfaceRequest<device::usb::DeviceManager> request) { 900 mojo::InterfaceRequest<device::usb::DeviceManager> request) {
898 WebContents* web_contents = 901 WebContents* web_contents =
899 WebContents::FromRenderFrameHost(render_frame_host); 902 WebContents::FromRenderFrameHost(render_frame_host);
(...skipping 2719 matching lines...) Expand 10 before | Expand all | Expand 10 after
3619 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3622 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3620 return variations::GetVariationParamValue( 3623 return variations::GetVariationParamValue(
3621 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3624 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3622 } 3625 }
3623 3626
3624 // static 3627 // static
3625 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3628 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3626 const storage::QuotaSettings* settings) { 3629 const storage::QuotaSettings* settings) {
3627 g_default_quota_settings = settings; 3630 g_default_quota_settings = settings;
3628 } 3631 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698