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

Unified Diff: chrome/browser/ui/webui/options2/cookies_view_handler2.h

Issue 10701029: clean-up: Use an id instead of memory pointer string in webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options2/cookies_view_handler2.h
diff --git a/chrome/browser/ui/webui/options2/cookies_view_handler2.h b/chrome/browser/ui/webui/options2/cookies_view_handler2.h
index 19e41105477890c8b1e6ee8e6b5562b300621430..fe36cc5e098b1701f66ffd7773c395ba06bbba29 100644
--- a/chrome/browser/ui/webui/options2/cookies_view_handler2.h
+++ b/chrome/browser/ui/webui/options2/cookies_view_handler2.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,6 +11,8 @@
#include "chrome/browser/cookies_tree_model.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
+class CookiesTreeModelUtil;
+
namespace options2 {
class CookiesViewHandler : public OptionsPageUIHandler,
@@ -57,7 +59,7 @@ class CookiesViewHandler : public OptionsPageUIHandler,
// Get children nodes data and pass it to 'CookiesView.loadChildren' to
// update the WebUI.
- void SendChildren(CookieTreeNode* parent);
+ void SendChildren(const CookieTreeNode* parent);
// The Cookies Tree model
scoped_ptr<CookiesTreeModel> cookies_tree_model_;
@@ -65,6 +67,8 @@ class CookiesViewHandler : public OptionsPageUIHandler,
// Flag to indicate whether there is a batch update in progress.
bool batch_update_;
+ scoped_ptr<CookiesTreeModelUtil> model_util_;
+
DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler);
};

Powered by Google App Engine
This is Rietveld 408576698