| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 void OnGetUsageInfo(const storage::UsageInfoEntries& entries); | 34 void OnGetUsageInfo(const storage::UsageInfoEntries& entries); |
| 35 void OnUsageInfoCleared(storage::QuotaStatusCode code); | 35 void OnUsageInfoCleared(storage::QuotaStatusCode code); |
| 36 | 36 |
| 37 // content_settings::Observer: | 37 // content_settings::Observer: |
| 38 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, | 38 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, |
| 39 const ContentSettingsPattern& secondary_pattern, | 39 const ContentSettingsPattern& secondary_pattern, |
| 40 ContentSettingsType content_type, | 40 ContentSettingsType content_type, |
| 41 std::string resource_identifier) override; | 41 std::string resource_identifier) override; |
| 42 private: | 42 private: |
| 43 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, GetAndSetDefault); |
| 44 FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Origins); |
| 45 |
| 43 // Asynchronously fetches the usage for a given origin. Replies back with | 46 // Asynchronously fetches the usage for a given origin. Replies back with |
| 44 // OnGetUsageInfo above. | 47 // OnGetUsageInfo above. |
| 45 void HandleFetchUsageTotal(const base::ListValue* args); | 48 void HandleFetchUsageTotal(const base::ListValue* args); |
| 46 | 49 |
| 47 // Deletes the storage being used for a given host. | 50 // Deletes the storage being used for a given host. |
| 48 void HandleClearUsage(const base::ListValue* args); | 51 void HandleClearUsage(const base::ListValue* args); |
| 49 | 52 |
| 50 // Gets and sets the default value for a particular content settings type. | 53 // Gets and sets the default value for a particular content settings type. |
| 51 void HandleSetDefaultValueForContentType(const base::ListValue* args); | 54 void HandleSetDefaultValueForContentType(const base::ListValue* args); |
| 52 void HandleGetDefaultValueForContentType(const base::ListValue* args); | 55 void HandleGetDefaultValueForContentType(const base::ListValue* args); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 68 | 71 |
| 69 // Change observer for content settings. | 72 // Change observer for content settings. |
| 70 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 73 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
| 71 | 74 |
| 72 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); | 75 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace settings | 78 } // namespace settings |
| 76 | 79 |
| 77 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ | 80 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ |
| OLD | NEW |