| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const content::NotificationSource& source, | 54 const content::NotificationSource& source, |
| 55 const content::NotificationDetails& details) override; | 55 const content::NotificationDetails& details) override; |
| 56 | 56 |
| 57 // content::HostZoomMap subscription. | 57 // content::HostZoomMap subscription. |
| 58 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change); | 58 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 friend class SiteSettingsHandlerTest; | 61 friend class SiteSettingsHandlerTest; |
| 62 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, GetAndSetDefault); | 62 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, GetAndSetDefault); |
| 63 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Origins); | 63 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Origins); |
| 64 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, ExceptionHelpers); |
| 64 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Patterns); | 65 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Patterns); |
| 65 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Incognito); | 66 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Incognito); |
| 66 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, ZoomLevels); | 67 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, ZoomLevels); |
| 67 | 68 |
| 68 // Asynchronously fetches the usage for a given origin. Replies back with | 69 // Asynchronously fetches the usage for a given origin. Replies back with |
| 69 // OnGetUsageInfo above. | 70 // OnGetUsageInfo above. |
| 70 void HandleFetchUsageTotal(const base::ListValue* args); | 71 void HandleFetchUsageTotal(const base::ListValue* args); |
| 71 | 72 |
| 72 // Deletes the storage being used for a given host. | 73 // Deletes the storage being used for a given host. |
| 73 void HandleClearUsage(const base::ListValue* args); | 74 void HandleClearUsage(const base::ListValue* args); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 127 |
| 127 // Change observer for content settings. | 128 // Change observer for content settings. |
| 128 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 129 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
| 129 | 130 |
| 130 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); | 131 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace settings | 134 } // namespace settings |
| 134 | 135 |
| 135 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ | 136 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ |
| OLD | NEW |