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

Side by Side Diff: chrome/browser/dom_ui/options/content_settings_handler.h

Issue 5398001: Allow default desktop content settings to be managed via policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Cocoa UI-changes Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/dom_ui/options/options_ui.h" 9 #include "chrome/browser/dom_ui/options/options_ui.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 10 #include "chrome/browser/prefs/pref_change_registrar.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Gets the HostContentSettingsMap for the normal profile. 89 // Gets the HostContentSettingsMap for the normal profile.
90 HostContentSettingsMap* GetContentSettingsMap(); 90 HostContentSettingsMap* GetContentSettingsMap();
91 91
92 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there 92 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there
93 // is no active incognito session. 93 // is no active incognito session.
94 HostContentSettingsMap* GetOTRContentSettingsMap(); 94 HostContentSettingsMap* GetOTRContentSettingsMap();
95 95
96 // Gets the default setting in string form. 96 // Gets the default setting in string form.
97 std::string GetSettingDefaultFromModel(ContentSettingsType type); 97 std::string GetSettingDefaultFromModel(ContentSettingsType type);
98 98
99 // Returns true if the default setting for the given content settings type
100 // |type| is managed.
101 bool GetDefaultSettingManagedFromModel(ContentSettingsType type);
102
99 // Member variables --------------------------------------------------------- 103 // Member variables ---------------------------------------------------------
100 104
101 NotificationRegistrar notification_registrar_; 105 NotificationRegistrar notification_registrar_;
102 PrefChangeRegistrar pref_change_registrar_; 106 PrefChangeRegistrar pref_change_registrar_;
103 107
104 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 108 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
105 }; 109 };
106 110
107 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 111 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/dom_ui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698