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

Unified Diff: chrome/browser/ui/webui/cookies_tree_model_util.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/cookies_tree_model_util.h
diff --git a/chrome/browser/ui/webui/cookies_tree_model_util.h b/chrome/browser/ui/webui/cookies_tree_model_util.h
index 423f293c11c83a60daac75a75e97c0cac9462169..39e16de784764ba354c8327eebad3cf13a5ca1fc 100644
--- a/chrome/browser/ui/webui/cookies_tree_model_util.h
+++ b/chrome/browser/ui/webui/cookies_tree_model_util.h
@@ -12,6 +12,7 @@
#include "base/id_map.h"
#include "base/macros.h"
+#include "base/strings/string16.h"
class CookieTreeNode;
@@ -28,6 +29,13 @@ class CookiesTreeModelUtil {
// Finds or creates an ID for given |node| and returns it as string.
std::string GetTreeNodeId(const CookieTreeNode* node);
+ // Append the details of the child nodes of |parent| in specified range.
+ void GetChildNodeDetails(const CookieTreeNode* parent,
+ int start,
+ int count,
+ bool include_quota_nodes,
+ base::ListValue* list);
+
// Append the children nodes of |parent| in specified range to |nodes| list.
void GetChildNodeList(const CookieTreeNode* parent,
int start,
@@ -41,6 +49,11 @@ class CookiesTreeModelUtil {
const CookieTreeNode* GetTreeNodeFromPath(const CookieTreeNode* root,
const std::string& path);
+ // Gets tree node from |title| under |root|. |title| is a node title. Return
+ // NULL if |title| is not found.
+ const CookieTreeNode* GetTreeNodeFromTitle(const CookieTreeNode* root,
+ const base::string16& title);
+
private:
typedef IDMap<const CookieTreeNode> CookiesTreeNodeIdMap;
typedef std::map<const CookieTreeNode*, int32_t> CookieTreeNodeMap;

Powered by Google App Engine
This is Rietveld 408576698