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

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: touchups 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..d3eedb0b86552b1ad35daab72c8487e9947036cf 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,30 @@ 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);
+
+ // Remove selected sites data.
+ 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);
+ 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_;

Powered by Google App Engine
This is Rietveld 408576698