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

Side by Side Diff: chrome/browser/ui/webui/options/cookies_view_handler.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/browsing_data/cookies_tree_model.h" 10 #include "chrome/browser/browsing_data/cookies_tree_model.h"
11 #include "chrome/browser/ui/webui/options/options_ui.h" 11 #include "chrome/browser/ui/webui/options/options_ui.h"
12 12
13 class CookiesTreeModelUtil; 13 class CookiesTreeModelUtil;
14 14
15 namespace options { 15 namespace options {
16 16
17 class CookiesViewHandler : public OptionsPageUIHandler, 17 class CookiesViewHandler : public OptionsPageUIHandler,
18 public CookiesTreeModel::Observer { 18 public CookiesTreeModel::Observer {
19 public: 19 public:
20 CookiesViewHandler(); 20 CookiesViewHandler();
21 virtual ~CookiesViewHandler(); 21 ~CookiesViewHandler() override;
22 22
23 // OptionsPageUIHandler implementation. 23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues( 24 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
25 base::DictionaryValue* localized_strings) override; 25 void RegisterMessages() override;
26 virtual void RegisterMessages() override;
27 26
28 // CookiesTreeModel::Observer implementation. 27 // CookiesTreeModel::Observer implementation.
29 virtual void TreeNodesAdded(ui::TreeModel* model, 28 void TreeNodesAdded(ui::TreeModel* model,
30 ui::TreeModelNode* parent, 29 ui::TreeModelNode* parent,
31 int start, 30 int start,
32 int count) override; 31 int count) override;
33 virtual void TreeNodesRemoved(ui::TreeModel* model, 32 void TreeNodesRemoved(ui::TreeModel* model,
34 ui::TreeModelNode* parent, 33 ui::TreeModelNode* parent,
35 int start, 34 int start,
36 int count) override; 35 int count) override;
37 virtual void TreeNodeChanged(ui::TreeModel* model, 36 void TreeNodeChanged(ui::TreeModel* model, ui::TreeModelNode* node) override {
38 ui::TreeModelNode* node) override {} 37 }
39 virtual void TreeModelBeginBatch(CookiesTreeModel* model) override; 38 void TreeModelBeginBatch(CookiesTreeModel* model) override;
40 virtual void TreeModelEndBatch(CookiesTreeModel* model) override; 39 void TreeModelEndBatch(CookiesTreeModel* model) override;
41 40
42 private: 41 private:
43 // Creates the CookiesTreeModel if neccessary. 42 // Creates the CookiesTreeModel if neccessary.
44 void EnsureCookiesTreeModelCreated(); 43 void EnsureCookiesTreeModelCreated();
45 44
46 // Updates search filter for cookies tree model. 45 // Updates search filter for cookies tree model.
47 void UpdateSearchResults(const base::ListValue* args); 46 void UpdateSearchResults(const base::ListValue* args);
48 47
49 // Remove all sites data. 48 // Remove all sites data.
50 void RemoveAll(const base::ListValue* args); 49 void RemoveAll(const base::ListValue* args);
(...skipping 20 matching lines...) Expand all
71 bool batch_update_; 70 bool batch_update_;
72 71
73 scoped_ptr<CookiesTreeModelUtil> model_util_; 72 scoped_ptr<CookiesTreeModelUtil> model_util_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler); 74 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler);
76 }; 75 };
77 76
78 } // namespace options 77 } // namespace options
79 78
80 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ 79 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698