OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/browser/cookies_tree_model.h" | 10 #include "chrome/browser/cookies_tree_model.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Remove all sites data. | 40 // Remove all sites data. |
41 void RemoveAll(const ListValue* args); | 41 void RemoveAll(const ListValue* args); |
42 | 42 |
43 // Remove selected sites data. | 43 // Remove selected sites data. |
44 void Remove(const ListValue* args); | 44 void Remove(const ListValue* args); |
45 | 45 |
46 // Get the tree node using the tree path info in |args| and call | 46 // Get the tree node using the tree path info in |args| and call |
47 // SendChildren to pass back children nodes data to WebUI. | 47 // SendChildren to pass back children nodes data to WebUI. |
48 void LoadChildren(const ListValue* args); | 48 void LoadChildren(const ListValue* args); |
49 | 49 |
50 // Gets tree node from given path. Return NULL if path is not valid. | |
51 CookieTreeNode* GetTreeNodeFromPath(const std::string& path); | |
52 | |
53 // Get children nodes data and pass it to 'CookiesView.loadChildren' to | 50 // Get children nodes data and pass it to 'CookiesView.loadChildren' to |
54 // update the WebUI. | 51 // update the WebUI. |
55 void SendChildren(CookieTreeNode* parent); | 52 void SendChildren(CookieTreeNode* parent); |
56 | 53 |
57 // The Cookies Tree model | 54 // The Cookies Tree model |
58 scoped_ptr<CookiesTreeModel> cookies_tree_model_; | 55 scoped_ptr<CookiesTreeModel> cookies_tree_model_; |
59 | 56 |
60 // Flag to indicate whether there is a batch update in progress. | 57 // Flag to indicate whether there is a batch update in progress. |
61 bool batch_update_; | 58 bool batch_update_; |
62 | 59 |
63 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler); | 60 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler); |
64 }; | 61 }; |
65 | 62 |
66 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ | 63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ |
OLD | NEW |