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

Side by Side Diff: chrome/browser/ui/webui/settings/site_settings_handler.h

Issue 2936003003: MD Settings: Set all content setting values in Site Details Javascript. (Closed)
Patch Set: Switch content setting source logic to if statements. Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SETTINGS_SITE_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Removes a particular USB device permission. 79 // Removes a particular USB device permission.
80 void HandleRemoveUsbDevice(const base::ListValue* args); 80 void HandleRemoveUsbDevice(const base::ListValue* args);
81 81
82 // Gets and sets the default value for a particular content settings type. 82 // Gets and sets the default value for a particular content settings type.
83 void HandleSetDefaultValueForContentType(const base::ListValue* args); 83 void HandleSetDefaultValueForContentType(const base::ListValue* args);
84 void HandleGetDefaultValueForContentType(const base::ListValue* args); 84 void HandleGetDefaultValueForContentType(const base::ListValue* args);
85 85
86 // Returns the list of site exceptions for a given content settings type. 86 // Returns the list of site exceptions for a given content settings type.
87 void HandleGetExceptionList(const base::ListValue* args); 87 void HandleGetExceptionList(const base::ListValue* args);
88 88
89 // Handles setting and resetting of an origin permission. 89 // Handles getting, setting and resetting an origin permission.
90 void HandleResetCategoryPermissionForOrigin(const base::ListValue* args); 90 void HandleResetCategoryPermissionForOrigin(const base::ListValue* args);
91 void HandleGetCategoryPermissionForOrigin(const base::ListValue* args);
91 void HandleSetCategoryPermissionForOrigin(const base::ListValue* args); 92 void HandleSetCategoryPermissionForOrigin(const base::ListValue* args);
92 93
93 // Return site exceptions for a single site.
94 void HandleGetSiteDetails(const base::ListValue* args);
95
96 // Returns whether a given pattern is valid. 94 // Returns whether a given pattern is valid.
97 void HandleIsPatternValid(const base::ListValue* args); 95 void HandleIsPatternValid(const base::ListValue* args);
98 96
99 // Looks up whether an incognito session is active. 97 // Looks up whether an incognito session is active.
100 void HandleUpdateIncognitoStatus(const base::ListValue* args); 98 void HandleUpdateIncognitoStatus(const base::ListValue* args);
101 99
102 // Notifies the JS side whether incognito is enabled. 100 // Notifies the JS side whether incognito is enabled.
103 void SendIncognitoStatus(Profile* profile, bool was_destroyed); 101 void SendIncognitoStatus(Profile* profile, bool was_destroyed);
104 102
105 // Handles the request for a list of all zoom levels. 103 // Handles the request for a list of all zoom levels.
(...skipping 21 matching lines...) Expand all
127 125
128 // Change observer for content settings. 126 // Change observer for content settings.
129 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 127 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
130 128
131 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); 129 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler);
132 }; 130 };
133 131
134 } // namespace settings 132 } // namespace settings
135 133
136 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ 134 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698