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 "content/browser/tab_contents/navigation_controller.h" | 8 #include "content/browser/tab_contents/navigation_controller.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/common/page_transition_types.h" | 10 #include "content/common/page_transition_types.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual void ProvisionalChangeToMainFrameUrl(const GURL& url, | 40 virtual void ProvisionalChangeToMainFrameUrl(const GURL& url, |
41 bool has_opener_set); | 41 bool has_opener_set); |
42 virtual void DidCommitProvisionalLoadForFrame( | 42 virtual void DidCommitProvisionalLoadForFrame( |
43 int64 frame_id, | 43 int64 frame_id, |
44 bool is_main_frame, | 44 bool is_main_frame, |
45 const GURL& url, | 45 const GURL& url, |
46 PageTransition::Type transition_type); | 46 PageTransition::Type transition_type); |
47 virtual void DidFailProvisionalLoad(int64 frame_id, | 47 virtual void DidFailProvisionalLoad(int64 frame_id, |
48 bool is_main_frame, | 48 bool is_main_frame, |
49 const GURL& validated_url, | 49 const GURL& validated_url, |
50 int error_code); | 50 int error_code, |
| 51 const string16& error_description); |
51 virtual void DocumentLoadedInFrame(int64 frame_id); | 52 virtual void DocumentLoadedInFrame(int64 frame_id); |
52 virtual void DidFinishLoad(int64 frame_id); | 53 virtual void DidFinishLoad(int64 frame_id); |
53 virtual void DidGetUserGesture(); | 54 virtual void DidGetUserGesture(); |
54 virtual void DidGetIgnoredUIEvent(); | 55 virtual void DidGetIgnoredUIEvent(); |
55 virtual void DidBecomeSelected(); | 56 virtual void DidBecomeSelected(); |
56 | 57 |
57 virtual void DidStartLoading(); | 58 virtual void DidStartLoading(); |
58 virtual void DidStopLoading(); | 59 virtual void DidStopLoading(); |
59 virtual void RenderViewGone(); | 60 virtual void RenderViewGone(); |
60 virtual void StopNavigation(); | 61 virtual void StopNavigation(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 120 |
120 TabContents* tab_contents_; | 121 TabContents* tab_contents_; |
121 | 122 |
122 // The routing ID of the associated TabContents. | 123 // The routing ID of the associated TabContents. |
123 int routing_id_; | 124 int routing_id_; |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); | 126 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); |
126 }; | 127 }; |
127 | 128 |
128 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 129 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
OLD | NEW |