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

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

Issue 542253003: Add a global on/off switch for content settings and expose a toggle on the Website Settings options… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@global-settings
Patch Set: Rebase. Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WEBSITE_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Get all origins that have used power, filter them by |last_filter_|, and 74 // Get all origins that have used power, filter them by |last_filter_|, and
75 // update the page. 75 // update the page.
76 void HandleUpdateBatteryUsage(const base::ListValue* args); 76 void HandleUpdateBatteryUsage(const base::ListValue* args);
77 77
78 // Deletes the local storage and repopulates the page. 78 // Deletes the local storage and repopulates the page.
79 void HandleDeleteLocalStorage(const base::ListValue* args); 79 void HandleDeleteLocalStorage(const base::ListValue* args);
80 80
81 // Populates the default setting drop down on the single site edit page. 81 // Populates the default setting drop down on the single site edit page.
82 void HandleUpdateDefaultSetting(const base::ListValue* args); 82 void HandleUpdateDefaultSetting(const base::ListValue* args);
83 83
84 // Sets the default setting for the lat used content setting to |args|. 84 // Sets the default setting for the last used content setting to |args|.
85 void HandleSetDefaultSetting(const base::ListValue* args); 85 void HandleSetDefaultSetting(const base::ListValue* args);
86 86
87 // Sets if a certain content setting enabled to |args|.
88 void HandleSetGlobalToggle(const base::ListValue* args);
89
87 // Closes all tabs and app windows which have the same origin as the selected 90 // Closes all tabs and app windows which have the same origin as the selected
88 // page. 91 // page.
89 void HandleStopOrigin(const base::ListValue* args); 92 void HandleStopOrigin(const base::ListValue* args);
90 93
91 // Callback method to be invoked when fetching the data is complete. 94 // Callback method to be invoked when fetching the data is complete.
92 void OnLocalStorageFetched(const LocalStorageList& storage); 95 void OnLocalStorageFetched(const LocalStorageList& storage);
93 96
94 // Get all origins with Content Settings for the last given content setting, 97 // Get all origins with Content Settings for the last given content setting,
95 // filter them by |last_filter_|, and update the page. 98 // filter them by |last_filter_|, and update the page.
96 void UpdateOrigins(); 99 void UpdateOrigins();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 scoped_ptr<power::OriginPowerMap::Subscription> subscription_; 141 scoped_ptr<power::OriginPowerMap::Subscription> subscription_;
139 142
140 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; 143 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_;
141 144
142 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); 145 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler);
143 }; 146 };
144 147
145 } // namespace options 148 } // namespace options
146 149
147 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ 150 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings.cc ('k') | chrome/browser/ui/webui/options/website_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698