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

Unified Diff: chrome/browser/ui/webui/settings/settings_cookies_view_handler.h

Issue 2476753002: [MD settings] get cookie details from site without transfering cookie tree (Closed)
Patch Set: closure fix Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/settings/settings_cookies_view_handler.h
diff --git a/chrome/browser/ui/webui/settings/settings_cookies_view_handler.h b/chrome/browser/ui/webui/settings/settings_cookies_view_handler.h
index 5bd36f0807b23b835c6fe88da3f2ffd0219c91b0..e087c55d302fdccdc535803dbab00c8b69c4a4d2 100644
--- a/chrome/browser/ui/webui/settings/settings_cookies_view_handler.h
+++ b/chrome/browser/ui/webui/settings/settings_cookies_view_handler.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_COOKIES_VIEW_HANDLER_H_
#include <memory>
+#include <string>
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -46,25 +47,31 @@ class CookiesViewHandler : public SettingsPageUIHandler,
void EnsureCookiesTreeModelCreated();
// Updates search filter for cookies tree model.
- void UpdateSearchResults(const base::ListValue* args);
+ void HandleUpdateSearchResults(const base::ListValue* args);
+
+ // Retrieve cookie details for a specific site.
+ void HandleGetCookieDetails(const base::ListValue* args);
// Remove all sites data.
- void RemoveAll(const base::ListValue* args);
+ void HandleRemoveAll(const base::ListValue* args);
// Remove selected sites data.
- void Remove(const base::ListValue* args);
+ void HandleRemove(const base::ListValue* args);
// Get the tree node using the tree path info in |args| and call
// SendChildren to pass back children nodes data to WebUI.
- void LoadChildren(const base::ListValue* args);
+ void HandleLoadChildren(const base::ListValue* args);
// Get children nodes data and pass it to 'CookiesView.loadChildren' to
// update the WebUI.
void SendChildren(const CookieTreeNode* parent);
+ // Package and send cookie details for a site.
+ void SendCookieDetails(const CookieTreeNode* parent);
+
// Reloads the CookiesTreeModel and passes the nodes to
// 'CookiesView.loadChildren' to update the WebUI.
- void ReloadCookies(const base::ListValue* args);
+ void HandleReloadCookies(const base::ListValue* args);
// The Cookies Tree model
std::unique_ptr<CookiesTreeModel> cookies_tree_model_;
« no previous file with comments | « chrome/browser/ui/webui/cookies_tree_model_util.cc ('k') | chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698