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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/cookies_tree_model.h" | 11 #include "chrome/browser/cookies_tree_model.h" |
12 #include "chrome/browser/ui/webui/options/options_ui.h" | 12 #include "chrome/browser/ui/webui/options/options_ui.h" |
13 | 13 |
14 class CookiesViewHandler : public OptionsPageUIHandler, | 14 class CookiesViewHandler : public OptionsPageUIHandler, |
15 public CookiesTreeModel::Observer { | 15 public CookiesTreeModel::Observer { |
16 public: | 16 public: |
17 CookiesViewHandler(); | 17 CookiesViewHandler(); |
18 virtual ~CookiesViewHandler(); | 18 virtual ~CookiesViewHandler(); |
19 | 19 |
20 // OptionsPageUIHandler implementation. | 20 // OptionsPageUIHandler implementation. |
21 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); | 21 virtual void GetLocalizedValues( |
22 virtual void RegisterMessages(); | 22 base::DictionaryValue* localized_strings) OVERRIDE; |
| 23 virtual void RegisterMessages() OVERRIDE; |
23 | 24 |
24 // CookiesTreeModel::Observer implementation. | 25 // CookiesTreeModel::Observer implementation. |
25 virtual void TreeNodesAdded(ui::TreeModel* model, | 26 virtual void TreeNodesAdded(ui::TreeModel* model, |
26 ui::TreeModelNode* parent, | 27 ui::TreeModelNode* parent, |
27 int start, | 28 int start, |
28 int count) OVERRIDE; | 29 int count) OVERRIDE; |
29 virtual void TreeNodesRemoved(ui::TreeModel* model, | 30 virtual void TreeNodesRemoved(ui::TreeModel* model, |
30 ui::TreeModelNode* parent, | 31 ui::TreeModelNode* parent, |
31 int start, | 32 int start, |
32 int count) OVERRIDE; | 33 int count) OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
59 // The Cookies Tree model | 60 // The Cookies Tree model |
60 scoped_ptr<CookiesTreeModel> cookies_tree_model_; | 61 scoped_ptr<CookiesTreeModel> cookies_tree_model_; |
61 | 62 |
62 // Flag to indicate whether there is a batch update in progress. | 63 // Flag to indicate whether there is a batch update in progress. |
63 bool batch_update_; | 64 bool batch_update_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler); | 66 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler); |
66 }; | 67 }; |
67 | 68 |
68 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ | 69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ |
OLD | NEW |