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