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/time.h" | 9 #include "base/time/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; |
49 virtual void DidNavigateMainFrame( | 50 virtual void DidNavigateMainFrame( |
50 const content::LoadCommittedDetails& details, | 51 const content::LoadCommittedDetails& details, |
51 const content::FrameNavigateParams& params) OVERRIDE; | 52 const content::FrameNavigateParams& params) OVERRIDE; |
52 virtual void DidNavigateAnyFrame( | 53 virtual void DidNavigateAnyFrame( |
53 const content::LoadCommittedDetails& details, | 54 const content::LoadCommittedDetails& details, |
54 const content::FrameNavigateParams& params) OVERRIDE; | 55 const content::FrameNavigateParams& params) OVERRIDE; |
55 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 56 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; |
56 | 57 |
57 // content::NotificationObserver implementation. | 58 // content::NotificationObserver implementation. |
58 virtual void Observe(int type, | 59 virtual void Observe(int type, |
(...skipping 12 matching lines...) Expand all Loading... |
71 // prevents some weirdness because some AJAXy apps use titles for status | 72 // prevents some weirdness because some AJAXy apps use titles for status |
72 // messages. | 73 // messages. |
73 bool received_page_title_; | 74 bool received_page_title_; |
74 | 75 |
75 content::NotificationRegistrar registrar_; | 76 content::NotificationRegistrar registrar_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(HistoryTabHelper); | 78 DISALLOW_COPY_AND_ASSIGN(HistoryTabHelper); |
78 }; | 79 }; |
79 | 80 |
80 #endif // CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ | 81 #endif // CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ |
OLD | NEW |