Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" | |
| 11 | |
| 12 class Profile; | |
| 13 | |
| 14 namespace base { | |
| 15 class Value; | |
| 16 } | |
| 17 | |
| 18 namespace settings { | |
| 19 | |
| 20 // Chrome "ContentSettings" settings page UI handler. | |
| 21 class SiteSettingsHandler : public SettingsPageUIHandler { | |
| 22 public: | |
| 23 explicit SiteSettingsHandler(Profile* profile); | |
| 24 ~SiteSettingsHandler() override; | |
| 25 | |
| 26 // SettingsPageUIHandler implementation. | |
| 27 void RegisterMessages() override; | |
| 28 | |
| 29 private: | |
| 30 // 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.
| |
| 31 // OnUsageDataAvailable. | |
| 32 void HandleFetchUsageTotal(const base::ListValue* args); | |
| 33 void OnUsageDataAvailable(); | |
| 34 | |
| 35 Profile* profile_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); | |
| 38 }; | |
| 39 | |
| 40 } // namespace settings | |
| 41 | |
| 42 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ | |
| OLD | NEW |