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

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: Created 6 years, 4 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // |args| is the name of the setting and the new value. 59 // |args| is the name of the setting and the new value.
60 void HandleSetOriginPermission(const base::ListValue* args); 60 void HandleSetOriginPermission(const base::ListValue* args);
61 61
62 // Update the page with all origins that are using local storage. 62 // Update the page with all origins that are using local storage.
63 void HandleUpdateLocalStorage(const base::ListValue* args); 63 void HandleUpdateLocalStorage(const base::ListValue* args);
64 64
65 // Show the single site edit view if the given URL is valid. 65 // Show the single site edit view if the given URL is valid.
66 // |args| is the URL. 66 // |args| is the URL.
67 void HandleMaybeShowEditPage(const base::ListValue* args); 67 void HandleMaybeShowEditPage(const base::ListValue* args);
68 68
69 // Get all origins that have used power, filter them by |last_filter_|, and
70 // update the page.
71 void HandleUpdateBatteryUsage(const base::ListValue* args);
72
69 // Deletes the local storage and repopulates the page. 73 // Deletes the local storage and repopulates the page.
70 void HandleDeleteLocalStorage(const base::ListValue* args); 74 void HandleDeleteLocalStorage(const base::ListValue* args);
71 75
72 // Closes all tabs and app windows which have the same origin as the selected 76 // Closes all tabs and app windows which have the same origin as the selected
73 // page. 77 // page.
74 void HandleStopOrigin(const base::ListValue* args); 78 void HandleStopOrigin(const base::ListValue* args);
75 79
76 // Callback method to be invoked when fetching the data is complete. 80 // Callback method to be invoked when fetching the data is complete.
77 void OnLocalStorageFetched(const LocalStorageList& storage); 81 void OnLocalStorageFetched(const LocalStorageList& storage);
78 82
(...skipping 29 matching lines...) Expand all
108 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 112 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
109 113
110 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; 114 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_;
111 115
112 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); 116 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler);
113 }; 117 };
114 118
115 } // namespace options 119 } // namespace options
116 120
117 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ 121 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698