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> |
| 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
11 #include "chrome/browser/storage/storage_info_fetcher.h" | 13 #include "chrome/browser/storage/storage_info_fetcher.h" |
12 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 14 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
13 #include "components/content_settings/core/browser/content_settings_observer.h" | 15 #include "components/content_settings/core/browser/content_settings_observer.h" |
14 #include "content/public/browser/host_zoom_map.h" | 16 #include "content/public/browser/host_zoom_map.h" |
15 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
17 | 19 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void HandleSetDefaultValueForContentType(const base::ListValue* args); | 82 void HandleSetDefaultValueForContentType(const base::ListValue* args); |
81 void HandleGetDefaultValueForContentType(const base::ListValue* args); | 83 void HandleGetDefaultValueForContentType(const base::ListValue* args); |
82 | 84 |
83 // Returns the list of site exceptions for a given content settings type. | 85 // Returns the list of site exceptions for a given content settings type. |
84 void HandleGetExceptionList(const base::ListValue* args); | 86 void HandleGetExceptionList(const base::ListValue* args); |
85 | 87 |
86 // Handles setting and resetting of an origin permission. | 88 // Handles setting and resetting of an origin permission. |
87 void HandleResetCategoryPermissionForOrigin(const base::ListValue* args); | 89 void HandleResetCategoryPermissionForOrigin(const base::ListValue* args); |
88 void HandleSetCategoryPermissionForOrigin(const base::ListValue* args); | 90 void HandleSetCategoryPermissionForOrigin(const base::ListValue* args); |
89 | 91 |
| 92 // Return site exceptions for a single site. |
| 93 void HandleGetSiteDetails(const base::ListValue* args); |
| 94 |
90 // Returns whether a given pattern is valid. | 95 // Returns whether a given pattern is valid. |
91 void HandleIsPatternValid(const base::ListValue* args); | 96 void HandleIsPatternValid(const base::ListValue* args); |
92 | 97 |
93 // Looks up whether an incognito session is active. | 98 // Looks up whether an incognito session is active. |
94 void HandleUpdateIncognitoStatus(const base::ListValue* args); | 99 void HandleUpdateIncognitoStatus(const base::ListValue* args); |
95 | 100 |
96 // Notifies the JS side whether incognito is enabled. | 101 // Notifies the JS side whether incognito is enabled. |
97 void SendIncognitoStatus(Profile* profile, bool was_destroyed); | 102 void SendIncognitoStatus(Profile* profile, bool was_destroyed); |
98 | 103 |
99 // Handles the request for a list of all zoom levels. | 104 // Handles the request for a list of all zoom levels. |
(...skipping 21 matching lines...) Expand all Loading... |
121 | 126 |
122 // Change observer for content settings. | 127 // Change observer for content settings. |
123 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 128 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
124 | 129 |
125 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); | 130 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); |
126 }; | 131 }; |
127 | 132 |
128 } // namespace settings | 133 } // namespace settings |
129 | 134 |
130 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ | 135 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ |
OLD | NEW |