| 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_HISTORY_HISTORY_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 const GURL& virtual_url, | 39 const GURL& virtual_url, |
| 40 base::Time timestamp, | 40 base::Time timestamp, |
| 41 bool did_replace_entry, | 41 bool did_replace_entry, |
| 42 const content::FrameNavigateParams& params); | 42 const content::FrameNavigateParams& params); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 explicit HistoryTabHelper(content::WebContents* web_contents); | 45 explicit HistoryTabHelper(content::WebContents* web_contents); |
| 46 friend class content::WebContentsUserData<HistoryTabHelper>; | 46 friend class content::WebContentsUserData<HistoryTabHelper>; |
| 47 | 47 |
| 48 // content::WebContentsObserver implementation. | 48 // content::WebContentsObserver implementation. |
| 49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
| 50 virtual void DidNavigateMainFrame( | 49 virtual void DidNavigateMainFrame( |
| 51 const content::LoadCommittedDetails& details, | 50 const content::LoadCommittedDetails& details, |
| 52 const content::FrameNavigateParams& params) OVERRIDE; | 51 const content::FrameNavigateParams& params) OVERRIDE; |
| 53 virtual void DidNavigateAnyFrame( | 52 virtual void DidNavigateAnyFrame( |
| 54 const content::LoadCommittedDetails& details, | 53 const content::LoadCommittedDetails& details, |
| 55 const content::FrameNavigateParams& params) OVERRIDE; | 54 const content::FrameNavigateParams& params) OVERRIDE; |
| 56 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 55 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; |
| 57 | 56 |
| 58 // content::NotificationObserver implementation. | 57 // content::NotificationObserver implementation. |
| 59 virtual void Observe(int type, | 58 virtual void Observe(int type, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 72 // prevents some weirdness because some AJAXy apps use titles for status | 71 // prevents some weirdness because some AJAXy apps use titles for status |
| 73 // messages. | 72 // messages. |
| 74 bool received_page_title_; | 73 bool received_page_title_; |
| 75 | 74 |
| 76 content::NotificationRegistrar registrar_; | 75 content::NotificationRegistrar registrar_; |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(HistoryTabHelper); | 77 DISALLOW_COPY_AND_ASSIGN(HistoryTabHelper); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 #endif // CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ | 80 #endif // CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ |
| OLD | NEW |