OLD | NEW |
---|---|
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 Loading... | |
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 setting and resetting an origin permission. |
90 void HandleResetCategoryPermissionForOrigin(const base::ListValue* args); | 90 void HandleResetCategoryPermissionForOrigin(const base::ListValue* args); |
91 void HandleSetCategoryPermissionForOrigin(const base::ListValue* args); | 91 void HandleSetCategoryPermissionForOrigin(const base::ListValue* args); |
92 | 92 |
93 // Return site exceptions for a single site. | 93 // Retrieves the content settings for a given list of ContentSettingTypes for |
94 void HandleGetSiteDetails(const base::ListValue* args); | 94 // the same origin. |
calamity
2017/06/29 05:31:26
nit: the same origin? Maybe 'an origin'?
Patti Lor
2017/06/30 01:40:33
Done.
| |
95 void HandleGetOriginPermissions(const base::ListValue* args); | |
95 | 96 |
96 // Returns whether a given pattern is valid. | 97 // Returns whether a given pattern is valid. |
97 void HandleIsPatternValid(const base::ListValue* args); | 98 void HandleIsPatternValid(const base::ListValue* args); |
98 | 99 |
99 // Looks up whether an incognito session is active. | 100 // Looks up whether an incognito session is active. |
100 void HandleUpdateIncognitoStatus(const base::ListValue* args); | 101 void HandleUpdateIncognitoStatus(const base::ListValue* args); |
101 | 102 |
102 // Notifies the JS side whether incognito is enabled. | 103 // Notifies the JS side whether incognito is enabled. |
103 void SendIncognitoStatus(Profile* profile, bool was_destroyed); | 104 void SendIncognitoStatus(Profile* profile, bool was_destroyed); |
104 | 105 |
(...skipping 22 matching lines...) Expand all Loading... | |
127 | 128 |
128 // Change observer for content settings. | 129 // Change observer for content settings. |
129 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 130 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
130 | 131 |
131 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); | 132 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); |
132 }; | 133 }; |
133 | 134 |
134 } // namespace settings | 135 } // namespace settings |
135 | 136 |
136 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ | 137 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ |
OLD | NEW |