Chromium Code Reviews| 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..11fe0bf5a046d40a1798a418440d986ea16b5569 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,12 @@ 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. |
| + // is not valid. |
|
Dan Beam
2016/11/04 00:35:31
^
dschuyler
2016/11/04 00:50:44
Done.
|
| + const CookieTreeNode* GetTreeNodeFromTitle(const CookieTreeNode* root, |
| + const base::string16& title); |
| + |
| private: |
| typedef IDMap<const CookieTreeNode> CookiesTreeNodeIdMap; |
| typedef std::map<const CookieTreeNode*, int32_t> CookieTreeNodeMap; |