| 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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 int64 frame_id, | 31 int64 frame_id, |
| 32 int64 parent_frame_id, | 32 int64 parent_frame_id, |
| 33 bool main_frame, | 33 bool main_frame, |
| 34 const GURL& url) {}; | 34 const GURL& url) {}; |
| 35 | 35 |
| 36 // The RenderFrameHostImpl has failed a provisional load. | 36 // The RenderFrameHostImpl has failed a provisional load. |
| 37 virtual void DidFailProvisionalLoadWithError( | 37 virtual void DidFailProvisionalLoadWithError( |
| 38 RenderFrameHostImpl* render_frame_host, | 38 RenderFrameHostImpl* render_frame_host, |
| 39 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; | 39 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; |
| 40 | 40 |
| 41 // The RenderFrameHostImpl processed a redirect during a provisional load. |
| 42 // |
| 43 // TODO(creis): Remove this method and have the pre-rendering code listen to |
| 44 // WebContentsObserver::DidGetRedirectForResourceRequest instead. |
| 45 // See http://crbug.com/78512. |
| 46 virtual void DidRedirectProvisionalLoad( |
| 47 RenderFrameHostImpl* render_frame_host, |
| 48 int32 page_id, |
| 49 const GURL& source_url, |
| 50 const GURL& target_url) {} |
| 51 |
| 41 protected: | 52 protected: |
| 42 friend class base::RefCounted<Navigator>; | 53 friend class base::RefCounted<Navigator>; |
| 43 virtual ~Navigator() {} | 54 virtual ~Navigator() {} |
| 44 }; | 55 }; |
| 45 | 56 |
| 46 } // namespace content | 57 } // namespace content |
| 47 | 58 |
| 48 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 59 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |