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(RenderFrameHostImpl* render_frame_host, | 53 virtual void DidStartProvisionalLoad( |
54 const GURL& validated_url, | 54 RenderFrameHostImpl* render_frame_host, |
55 bool is_error_page) {} | 55 const GURL& validated_url, |
| 56 bool is_error_page, |
| 57 bool is_iframe_srcdoc) {} |
56 | 58 |
57 // A provisional load in |render_frame_host| failed. | 59 // A provisional load in |render_frame_host| failed. |
58 virtual void DidFailProvisionalLoadWithError( | 60 virtual void DidFailProvisionalLoadWithError( |
59 RenderFrameHostImpl* render_frame_host, | 61 RenderFrameHostImpl* render_frame_host, |
60 const GURL& validated_url, | 62 const GURL& validated_url, |
61 int error_code, | 63 int error_code, |
62 const base::string16& error_description, | 64 const base::string16& error_description, |
63 bool was_ignored_by_handler) {} | 65 bool was_ignored_by_handler) {} |
64 | 66 |
65 // Document load in |render_frame_host| failed. | 67 // Document load in |render_frame_host| failed. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // wants to see passed to the corresponding URLRequest on the IO thread. | 146 // wants to see passed to the corresponding URLRequest on the IO thread. |
145 // In the case of a navigation to an interstitial, no call will be made to the | 147 // In the case of a navigation to an interstitial, no call will be made to the |
146 // embedder and |nullptr| is returned. | 148 // embedder and |nullptr| is returned. |
147 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( | 149 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( |
148 NavigationHandle* navigation_handle); | 150 NavigationHandle* navigation_handle); |
149 }; | 151 }; |
150 | 152 |
151 } // namspace content | 153 } // namspace content |
152 | 154 |
153 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 155 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |