OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_NAVIGATOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "content/browser/frame_host/navigator.h" | 9 #include "content/browser/frame_host/navigator.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Navigator implementation. | 24 // Navigator implementation. |
25 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 25 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
26 int64 frame_id, | 26 int64 frame_id, |
27 int64 parent_frame_id, | 27 int64 parent_frame_id, |
28 bool main_frame, | 28 bool main_frame, |
29 const GURL& url) OVERRIDE; | 29 const GURL& url) OVERRIDE; |
30 virtual void DidFailProvisionalLoadWithError( | 30 virtual void DidFailProvisionalLoadWithError( |
31 RenderFrameHostImpl* render_frame_host, | 31 RenderFrameHostImpl* render_frame_host, |
32 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) | 32 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) |
33 OVERRIDE; | 33 OVERRIDE; |
| 34 virtual void DidRedirectProvisionalLoad( |
| 35 RenderFrameHostImpl* render_frame_host, |
| 36 int32 page_id, |
| 37 const GURL& source_url, |
| 38 const GURL& target_url) OVERRIDE; |
34 | 39 |
35 private: | 40 private: |
36 virtual ~NavigatorImpl() {} | 41 virtual ~NavigatorImpl() {} |
37 | 42 |
38 // The NavigationController that will keep track of session history for all | 43 // The NavigationController that will keep track of session history for all |
39 // RenderFrameHost objects using this NavigatorImpl. | 44 // RenderFrameHost objects using this NavigatorImpl. |
40 // TODO(nasko): Move ownership of the NavigationController from | 45 // TODO(nasko): Move ownership of the NavigationController from |
41 // WebContentsImpl to this class. | 46 // WebContentsImpl to this class. |
42 NavigationControllerImpl* controller_; | 47 NavigationControllerImpl* controller_; |
43 | 48 |
44 // Used to notify the object embedding this Navigator about navigation | 49 // Used to notify the object embedding this Navigator about navigation |
45 // events. Can be NULL in tests. | 50 // events. Can be NULL in tests. |
46 NavigatorDelegate* delegate_; | 51 NavigatorDelegate* delegate_; |
47 | 52 |
48 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 53 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
49 }; | 54 }; |
50 | 55 |
51 } // namespace content | 56 } // namespace content |
52 | 57 |
53 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 58 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
OLD | NEW |