Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: chrome/browser/ui/webui/options/website_settings_handler.h

Issue 501063002: Surface battery auditing information on the website settings option page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@origin-power-map
Patch Set: Rebase. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // |args| is the name of the setting and the new value. 63 // |args| is the name of the setting and the new value.
64 void HandleSetOriginPermission(const base::ListValue* args); 64 void HandleSetOriginPermission(const base::ListValue* args);
65 65
66 // Update the page with all origins that are using local storage. 66 // Update the page with all origins that are using local storage.
67 void HandleUpdateLocalStorage(const base::ListValue* args); 67 void HandleUpdateLocalStorage(const base::ListValue* args);
68 68
69 // Show the single site edit view if the given URL is valid. 69 // Show the single site edit view if the given URL is valid.
70 // |args| is the URL. 70 // |args| is the URL.
71 void HandleMaybeShowEditPage(const base::ListValue* args); 71 void HandleMaybeShowEditPage(const base::ListValue* args);
72 72
73 // Get all origins that have used power, filter them by |last_filter_|, and
74 // update the page.
75 void HandleUpdateBatteryUsage(const base::ListValue* args);
76
73 // Deletes the local storage and repopulates the page. 77 // Deletes the local storage and repopulates the page.
74 void HandleDeleteLocalStorage(const base::ListValue* args); 78 void HandleDeleteLocalStorage(const base::ListValue* args);
75 79
76 // Closes all tabs and app windows which have the same origin as the selected 80 // Closes all tabs and app windows which have the same origin as the selected
77 // page. 81 // page.
78 void HandleStopOrigin(const base::ListValue* args); 82 void HandleStopOrigin(const base::ListValue* args);
79 83
80 // Callback method to be invoked when fetching the data is complete. 84 // Callback method to be invoked when fetching the data is complete.
81 void OnLocalStorageFetched(const LocalStorageList& storage); 85 void OnLocalStorageFetched(const LocalStorageList& storage);
82 86
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 119 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
116 120
117 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; 121 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_;
118 122
119 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); 123 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler);
120 }; 124 };
121 125
122 } // namespace options 126 } // namespace options
123 127
124 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ 128 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698