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

Unified Diff: chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h

Issue 10945010: Switch BookmarkTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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/tab_contents/web_drag_bookmark_handler_aura.h
diff --git a/chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h b/chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h
index 835eef0b40a464b6338dacb3ac613e9825faa7c2..e628e51ddbc7e4db761222b92a39328ee0d5a2c4 100644
--- a/chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h
+++ b/chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h
@@ -9,7 +9,11 @@
#include "content/public/browser/web_drag_dest_delegate.h"
#include "chrome/browser/bookmarks/bookmark_node_data.h"
-class TabContents;
+class BookmarkTabHelper;
+
+namespace content {
+class WebContents;
+}
// Chrome needs to intercept content drag events so it can dispatch them to the
// bookmarks and extensions system.
@@ -30,10 +34,12 @@ class WebDragBookmarkHandlerAura : public content::WebDragDestDelegate {
virtual void OnReceiveDragData(const ui::OSExchangeData& data) OVERRIDE;
private:
- // The TabContents.
- // Weak reference; may be NULL if the contents aren't contained in a
- // TabContents (e.g. WebUI dialogs).
- TabContents* tab_;
+ // The BookmarkTabHelper.
+ // Weak reference; may be NULL if the contents don't have a
+ // BookmarkTabHelper (e.g. WebUI dialogs).
+ BookmarkTabHelper* bookmark_tab_helper_;
+
+ content::WebContents* web_contents_;
// The bookmark data for the active drag. Empty when there is no active drag.
BookmarkNodeData bookmark_drag_data_;

Powered by Google App Engine
This is Rietveld 408576698