Chromium Code Reviews| 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 "content/public/browser/invalidate_type.h" | 8 #include "content/public/browser/invalidate_type.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class RenderFrameHost; | 12 class RenderFrameHost; |
| 13 | 13 |
| 14 // A delegate API used by Navigator to notify its embedder of navigation | 14 // A delegate API used by Navigator to notify its embedder of navigation |
| 15 // related events. | 15 // related events. |
| 16 class NavigatorDelegate { | 16 class NavigatorDelegate { |
| 17 public: | 17 public: |
| 18 // The RenderFrameHost started a provisional load for the frame | 18 // The RenderFrameHost started a provisional load for the frame |
| 19 // represented by |render_frame_host|. | 19 // represented by |render_frame_host|. |
| 20 virtual void DidStartProvisionalLoad( | 20 virtual void DidStartProvisionalLoad( |
| 21 RenderFrameHostImpl* render_frame_host, | 21 RenderFrameHostImpl* render_frame_host, |
| 22 int64 frame_id, | 22 int64 frame_id, |
| 23 int64 parent_frame_id, | 23 int64 parent_frame_id, |
| 24 bool is_main_frame, | 24 bool is_main_frame, |
| 25 const GURL& validated_url, | 25 const GURL& validated_url, |
| 26 bool is_error_page, | 26 bool is_error_page, |
| 27 bool is_iframe_srcdoc) {} | 27 bool is_iframe_srcdoc) {} |
| 28 | 28 |
| 29 // A provisional load in the RenderFrameHost failed. | |
|
Charlie Reis
2014/01/06 18:13:35
in the RenderFrameHost -> in |render_frame_host|
nasko
2014/01/06 18:47:03
Done.
| |
| 30 virtual void DidFailProvisionalLoadWithError( | |
| 31 RenderFrameHostImpl* render_frame_host, | |
| 32 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {} | |
| 33 | |
| 29 // Notification to the Navigator embedder that navigation state has | 34 // Notification to the Navigator embedder that navigation state has |
| 30 // changed. This method corresponds to | 35 // changed. This method corresponds to |
| 31 // WebContents::NotifyNavigationStateChanged. | 36 // WebContents::NotifyNavigationStateChanged. |
| 32 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} | 37 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} |
| 33 }; | 38 }; |
| 34 | 39 |
| 35 } // namspace content | 40 } // namspace content |
| 36 | 41 |
| 37 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 42 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| OLD | NEW |