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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "content/public/browser/invalidate_type.h" | 10 #include "content/public/browser/invalidate_type.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Called when the navigation finished: it was either committed or canceled | 43 // Called when the navigation finished: it was either committed or canceled |
44 // before commit. Note that |navigation_handle| will be destroyed at the end | 44 // before commit. Note that |navigation_handle| will be destroyed at the end |
45 // of this call. | 45 // of this call. |
46 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} | 46 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} |
47 | 47 |
48 // TODO(clamy): all methods below that are related to navigation | 48 // TODO(clamy): all methods below that are related to navigation |
49 // events should go away in favor of the ones above. | 49 // events should go away in favor of the ones above. |
50 | 50 |
51 // The RenderFrameHost started a provisional load for the frame | 51 // The RenderFrameHost started a provisional load for the frame |
52 // represented by |render_frame_host|. | 52 // represented by |render_frame_host|. |
53 virtual void DidStartProvisionalLoad( | 53 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
54 RenderFrameHostImpl* render_frame_host, | 54 const GURL& validated_url, |
55 const GURL& validated_url, | 55 bool is_error_page) {} |
56 bool is_error_page, | |
57 bool is_iframe_srcdoc) {} | |
58 | 56 |
59 // A provisional load in |render_frame_host| failed. | 57 // A provisional load in |render_frame_host| failed. |
60 virtual void DidFailProvisionalLoadWithError( | 58 virtual void DidFailProvisionalLoadWithError( |
61 RenderFrameHostImpl* render_frame_host, | 59 RenderFrameHostImpl* render_frame_host, |
62 const GURL& validated_url, | 60 const GURL& validated_url, |
63 int error_code, | 61 int error_code, |
64 const base::string16& error_description, | 62 const base::string16& error_description, |
65 bool was_ignored_by_handler) {} | 63 bool was_ignored_by_handler) {} |
66 | 64 |
67 // Document load in |render_frame_host| failed. | 65 // Document load in |render_frame_host| failed. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // wants to see passed to the corresponding URLRequest on the IO thread. | 144 // wants to see passed to the corresponding URLRequest on the IO thread. |
147 // In the case of a navigation to an interstitial, no call will be made to the | 145 // In the case of a navigation to an interstitial, no call will be made to the |
148 // embedder and |nullptr| is returned. | 146 // embedder and |nullptr| is returned. |
149 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( | 147 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( |
150 NavigationHandle* navigation_handle); | 148 NavigationHandle* navigation_handle); |
151 }; | 149 }; |
152 | 150 |
153 } // namspace content | 151 } // namspace content |
154 | 152 |
155 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 153 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |