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/page_transition_types.h" | 9 #include "content/common/page_transition_types.h" |
10 #include "ipc/ipc_channel.h" | 10 #include "ipc/ipc_channel.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const NavigationController::LoadCommittedDetails& details, | 49 const NavigationController::LoadCommittedDetails& details, |
50 const ViewHostMsg_FrameNavigate_Params& params); | 50 const ViewHostMsg_FrameNavigate_Params& params); |
51 // |render_view_host| is the RenderViewHost for which the provisional load is | 51 // |render_view_host| is the RenderViewHost for which the provisional load is |
52 // happening. | 52 // happening. |
53 virtual void DidStartProvisionalLoadForFrame( | 53 virtual void DidStartProvisionalLoadForFrame( |
54 int64 frame_id, | 54 int64 frame_id, |
55 bool is_main_frame, | 55 bool is_main_frame, |
56 const GURL& validated_url, | 56 const GURL& validated_url, |
57 bool is_error_page, | 57 bool is_error_page, |
58 RenderViewHost* render_view_host); | 58 RenderViewHost* render_view_host); |
59 virtual void ProvisionalChangeToMainFrameUrl(const GURL& url); | 59 virtual void ProvisionalChangeToMainFrameUrl(const GURL& url, |
| 60 bool has_opener_set); |
60 virtual void DidCommitProvisionalLoadForFrame( | 61 virtual void DidCommitProvisionalLoadForFrame( |
61 int64 frame_id, | 62 int64 frame_id, |
62 bool is_main_frame, | 63 bool is_main_frame, |
63 const GURL& url, | 64 const GURL& url, |
64 PageTransition::Type transition_type); | 65 PageTransition::Type transition_type); |
65 virtual void DidFailProvisionalLoad(int64 frame_id, | 66 virtual void DidFailProvisionalLoad(int64 frame_id, |
66 bool is_main_frame, | 67 bool is_main_frame, |
67 const GURL& validated_url, | 68 const GURL& validated_url, |
68 int error_code); | 69 int error_code); |
69 virtual void DocumentLoadedInFrame(int64 frame_id); | 70 virtual void DocumentLoadedInFrame(int64 frame_id); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 136 |
136 TabContents* tab_contents_; | 137 TabContents* tab_contents_; |
137 | 138 |
138 // The routing ID of the associated TabContents. | 139 // The routing ID of the associated TabContents. |
139 int routing_id_; | 140 int routing_id_; |
140 | 141 |
141 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); | 142 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); |
142 }; | 143 }; |
143 | 144 |
144 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 145 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
OLD | NEW |