Index: chrome/browser/ui/webui/settings/site_settings_handler.h |
diff --git a/chrome/browser/ui/webui/settings/site_settings_handler.h b/chrome/browser/ui/webui/settings/site_settings_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a8761bf839317ccb6479de2121fdd286d018cd0b |
--- /dev/null |
+++ b/chrome/browser/ui/webui/settings/site_settings_handler.h |
@@ -0,0 +1,42 @@ |
+// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
michaelpg
2016/01/19 20:47:54
no (c)
Finnur
2016/01/22 15:07:36
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ |
+#define CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ |
+ |
+#include <vector> |
+ |
+#include "chrome/browser/ui/webui/settings/md_settings_ui.h" |
+ |
+class Profile; |
+ |
+namespace base { |
+class Value; |
+} |
+ |
+namespace settings { |
+ |
+// Chrome "ContentSettings" settings page UI handler. |
+class SiteSettingsHandler : public SettingsPageUIHandler { |
+ public: |
+ explicit SiteSettingsHandler(Profile* profile); |
+ ~SiteSettingsHandler() override; |
+ |
+ // SettingsPageUIHandler implementation. |
+ void RegisterMessages() override; |
+ |
+ private: |
+ // Asynchronuysly fetches the usage for a given origin. Replies back with |
michaelpg
2016/01/19 20:47:54
Asynchronously
Finnur
2016/01/22 15:07:36
Done.
|
+ // OnUsageDataAvailable. |
+ void HandleFetchUsageTotal(const base::ListValue* args); |
+ void OnUsageDataAvailable(); |
+ |
+ Profile* profile_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); |
+}; |
+ |
+} // namespace settings |
+ |
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ |