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

Side by Side Diff: chrome/browser/ui/webui/options/content_settings_handler.h

Issue 7310003: Disable chrome://options UI elements if the corresponding preference is not user-modifiable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 5 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) 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 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/plugin_data_remover_helper.h" 9 #include "chrome/browser/plugin_data_remover_helper.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 10 #include "chrome/browser/prefs/pref_change_registrar.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void RemoveException(const ListValue* args); 78 void RemoveException(const ListValue* args);
79 79
80 // Changes the value of an exception. Called after the user is done editing an 80 // Changes the value of an exception. Called after the user is done editing an
81 // exception. 81 // exception.
82 void SetException(const ListValue* args); 82 void SetException(const ListValue* args);
83 83
84 // Called to decide whether a given pattern is valid, or if it should be 84 // Called to decide whether a given pattern is valid, or if it should be
85 // rejected. Called while the user is editing an exception pattern. 85 // rejected. Called while the user is editing an exception pattern.
86 void CheckExceptionPatternValidity(const ListValue* args); 86 void CheckExceptionPatternValidity(const ListValue* args);
87 87
88 // Sets the global 3rd party cookies pref.
89 void SetAllowThirdPartyCookies(const ListValue* args);
90
91 // Utility functions --------------------------------------------------------- 88 // Utility functions ---------------------------------------------------------
92 89
93 // Gets the HostContentSettingsMap for the normal profile. 90 // Gets the HostContentSettingsMap for the normal profile.
94 HostContentSettingsMap* GetContentSettingsMap(); 91 HostContentSettingsMap* GetContentSettingsMap();
95 92
96 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there 93 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there
97 // is no active incognito session. 94 // is no active incognito session.
98 HostContentSettingsMap* GetOTRContentSettingsMap(); 95 HostContentSettingsMap* GetOTRContentSettingsMap();
99 96
100 // Gets the default setting in string form. 97 // Gets the default setting in string form.
101 std::string GetSettingDefaultFromModel(ContentSettingsType type); 98 std::string GetSettingDefaultFromModel(ContentSettingsType type);
102 99
103 // Returns true if the default setting for the given content settings type 100 // Returns true if the default setting for the given content settings type
104 // |type| is managed. 101 // |type| is managed.
105 bool GetDefaultSettingManagedFromModel(ContentSettingsType type); 102 bool GetDefaultSettingManagedFromModel(ContentSettingsType type);
106 103
107 // Gets the ProtocolHandlerRegistry for the normal profile. 104 // Gets the ProtocolHandlerRegistry for the normal profile.
108 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); 105 ProtocolHandlerRegistry* GetProtocolHandlerRegistry();
109 106
110 // Member variables --------------------------------------------------------- 107 // Member variables ---------------------------------------------------------
111 108
112 NotificationRegistrar notification_registrar_; 109 NotificationRegistrar notification_registrar_;
113 PrefChangeRegistrar pref_change_registrar_; 110 PrefChangeRegistrar pref_change_registrar_;
114 111
115 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 112 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
116 }; 113 };
117 114
118 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 115 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/pref_ui.js ('k') | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698