OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
7 | 7 |
8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
9 #include "content/browser/tab_contents/navigation_controller.h" | 9 #include "content/browser/tab_contents/navigation_controller.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual void DidCommitProvisionalLoadForFrame( | 46 virtual void DidCommitProvisionalLoadForFrame( |
47 int64 frame_id, | 47 int64 frame_id, |
48 bool is_main_frame, | 48 bool is_main_frame, |
49 const GURL& url, | 49 const GURL& url, |
50 content::PageTransition transition_type); | 50 content::PageTransition transition_type); |
51 virtual void DidFailProvisionalLoad(int64 frame_id, | 51 virtual void DidFailProvisionalLoad(int64 frame_id, |
52 bool is_main_frame, | 52 bool is_main_frame, |
53 const GURL& validated_url, | 53 const GURL& validated_url, |
54 int error_code, | 54 int error_code, |
55 const string16& error_description); | 55 const string16& error_description); |
| 56 virtual void DocumentAvailableInMainFrame(); |
56 virtual void DocumentLoadedInFrame(int64 frame_id); | 57 virtual void DocumentLoadedInFrame(int64 frame_id); |
57 virtual void DidFinishLoad(int64 frame_id); | 58 virtual void DidFinishLoad(int64 frame_id); |
58 virtual void DidGetUserGesture(); | 59 virtual void DidGetUserGesture(); |
59 virtual void DidGetIgnoredUIEvent(); | 60 virtual void DidGetIgnoredUIEvent(); |
60 virtual void DidBecomeSelected(); | 61 virtual void DidBecomeSelected(); |
61 | 62 |
62 virtual void DidStartLoading(); | 63 virtual void DidStartLoading(); |
63 virtual void DidStopLoading(); | 64 virtual void DidStopLoading(); |
64 virtual void StopNavigation(); | 65 virtual void StopNavigation(); |
65 | 66 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out | 128 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out |
128 // |tab_contents_|. | 129 // |tab_contents_|. |
129 void TabContentsDestroyed(); | 130 void TabContentsDestroyed(); |
130 | 131 |
131 TabContents* tab_contents_; | 132 TabContents* tab_contents_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); | 134 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); |
134 }; | 135 }; |
135 | 136 |
136 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 137 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
OLD | NEW |