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

Side by Side Diff: chrome/browser/ui/webui/cookies_tree_model_util.h

Issue 6611030: Move cookies tree model helper code into cookies_tree_model_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/webui/cookies_tree_model_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_COOKIES_TREE_MODEL_UTIL_H_
6 #define CHROME_BROWSER_UI_WEBUI_COOKIES_TREE_MODEL_UTIL_H_
7 #pragma once
8
9 #include <string>
10
11 class CookieTreeNode;
12 class DictionaryValue;
13 class ListValue;
14
15 namespace cookies_tree_model_util {
16
17 // Returns tree node id. Currently use hex string of node pointer as id.
18 std::string GetTreeNodeId(CookieTreeNode* node);
19
20 // Populate given |dict| with cookie tree node properties.
21 void GetCookieTreeNodeDictionary(const CookieTreeNode& node,
22 DictionaryValue* dict);
23
24 // Append the children nodes of |parent| in specified range to |nodes| list.
25 void GetChildNodeList(CookieTreeNode* parent, int start, int count,
26 ListValue* nodes);
27
28 // Gets tree node from |path| under |root|. Return NULL if |path| is not valid.
29 CookieTreeNode* GetTreeNodeFromPath(CookieTreeNode* root,
30 const std::string& path);
31
32 } // namespace cookies_tree_model_util
33
34 #endif // CHROME_BROWSER_UI_WEBUI_COOKIES_TREE_MODEL_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/cookies_tree_model_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698