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

Side by Side Diff: chrome/browser/ui/webui/settings/settings_cookies_view_handler.h

Issue 2115833003: Site Settings Desktop: Implement the cookies list and details dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 5 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 2016 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_SETTINGS_SETTINGS_COOKIES_VIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_COOKIES_VIEW_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/browsing_data/cookies_tree_model.h" 12 #include "chrome/browser/browsing_data/cookies_tree_model.h"
13 #include "chrome/browser/ui/webui/options/options_ui.h" 13 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
14 14
15 class CookiesTreeModelUtil; 15 class CookiesTreeModelUtil;
16 16
17 namespace options { 17 namespace settings {
18 18
19 class CookiesViewHandler : public OptionsPageUIHandler, 19 class CookiesViewHandler : public SettingsPageUIHandler,
20 public CookiesTreeModel::Observer { 20 public CookiesTreeModel::Observer {
21 public: 21 public:
22 CookiesViewHandler(); 22 CookiesViewHandler();
23 ~CookiesViewHandler() override; 23 ~CookiesViewHandler() override;
24 24
25 // OptionsPageUIHandler implementation. 25 // SettingsPageUIHandler:
26 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; 26 void OnJavascriptAllowed() override;
27 void OnJavascriptDisallowed() override;
27 void RegisterMessages() override; 28 void RegisterMessages() override;
28 29
29 // CookiesTreeModel::Observer implementation. 30 // CookiesTreeModel::Observer:
30 void TreeNodesAdded(ui::TreeModel* model, 31 void TreeNodesAdded(ui::TreeModel* model,
31 ui::TreeModelNode* parent, 32 ui::TreeModelNode* parent,
32 int start, 33 int start,
33 int count) override; 34 int count) override;
34 void TreeNodesRemoved(ui::TreeModel* model, 35 void TreeNodesRemoved(ui::TreeModel* model,
35 ui::TreeModelNode* parent, 36 ui::TreeModelNode* parent,
36 int start, 37 int start,
37 int count) override; 38 int count) override;
38 void TreeNodeChanged(ui::TreeModel* model, ui::TreeModelNode* node) override { 39 void TreeNodeChanged(ui::TreeModel* model, ui::TreeModelNode* node) override {
39 } 40 }
(...skipping 29 matching lines...) Expand all
69 std::unique_ptr<CookiesTreeModel> cookies_tree_model_; 70 std::unique_ptr<CookiesTreeModel> cookies_tree_model_;
70 71
71 // Flag to indicate whether there is a batch update in progress. 72 // Flag to indicate whether there is a batch update in progress.
72 bool batch_update_; 73 bool batch_update_;
73 74
74 std::unique_ptr<CookiesTreeModelUtil> model_util_; 75 std::unique_ptr<CookiesTreeModelUtil> model_util_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler); 77 DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler);
77 }; 78 };
78 79
79 } // namespace options 80 } // namespace settings
80 81
81 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_COOKIES_VIEW_HANDLER_H_ 82 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_COOKIES_VIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698