OLD | NEW |
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_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 9 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
| 10 #include "content/public/browser/reload_type.h" |
10 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
11 #include "content/public/browser/web_contents_user_data.h" | 12 #include "content/public/browser/web_contents_user_data.h" |
12 | 13 |
13 class BookmarkTabHelperDelegate; | 14 class BookmarkTabHelperDelegate; |
14 | 15 |
15 namespace bookmarks { | 16 namespace bookmarks { |
16 struct BookmarkNodeData; | 17 struct BookmarkNodeData; |
17 } | 18 } |
18 | 19 |
19 namespace content { | 20 namespace content { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const std::set<GURL>& removed_urls) override; | 83 const std::set<GURL>& removed_urls) override; |
83 void BookmarkNodeChanged(bookmarks::BookmarkModel* model, | 84 void BookmarkNodeChanged(bookmarks::BookmarkModel* model, |
84 const bookmarks::BookmarkNode* node) override; | 85 const bookmarks::BookmarkNode* node) override; |
85 | 86 |
86 // Overridden from content::WebContentsObserver: | 87 // Overridden from content::WebContentsObserver: |
87 void DidNavigateMainFrame( | 88 void DidNavigateMainFrame( |
88 const content::LoadCommittedDetails& details, | 89 const content::LoadCommittedDetails& details, |
89 const content::FrameNavigateParams& params) override; | 90 const content::FrameNavigateParams& params) override; |
90 void DidStartNavigationToPendingEntry( | 91 void DidStartNavigationToPendingEntry( |
91 const GURL& url, | 92 const GURL& url, |
92 content::NavigationController::ReloadType reload_type) override; | 93 content::ReloadType reload_type) override; |
93 void DidAttachInterstitialPage() override; | 94 void DidAttachInterstitialPage() override; |
94 void DidDetachInterstitialPage() override; | 95 void DidDetachInterstitialPage() override; |
95 | 96 |
96 // Whether the current URL is starred. | 97 // Whether the current URL is starred. |
97 bool is_starred_; | 98 bool is_starred_; |
98 | 99 |
99 bookmarks::BookmarkModel* bookmark_model_; | 100 bookmarks::BookmarkModel* bookmark_model_; |
100 | 101 |
101 // Our delegate, to notify when the url starred changed. | 102 // Our delegate, to notify when the url starred changed. |
102 BookmarkTabHelperDelegate* delegate_; | 103 BookmarkTabHelperDelegate* delegate_; |
103 | 104 |
104 // The BookmarkDrag is used to forward bookmark drag and drop events to | 105 // The BookmarkDrag is used to forward bookmark drag and drop events to |
105 // extensions. | 106 // extensions. |
106 BookmarkDrag* bookmark_drag_; | 107 BookmarkDrag* bookmark_drag_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper); | 109 DISALLOW_COPY_AND_ASSIGN(BookmarkTabHelper); |
109 }; | 110 }; |
110 | 111 |
111 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ | 112 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_TAB_HELPER_H_ |
OLD | NEW |