| 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/strings/string16.h" | 8 #include "base/strings/string16.h" | 
| 9 #include "content/public/browser/invalidate_type.h" | 9 #include "content/public/browser/invalidate_type.h" | 
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 26 class CONTENT_EXPORT NavigatorDelegate { | 26 class CONTENT_EXPORT NavigatorDelegate { | 
| 27  public: | 27  public: | 
| 28   // The RenderFrameHost started a provisional load for the frame | 28   // The RenderFrameHost started a provisional load for the frame | 
| 29   // represented by |render_frame_host|. | 29   // represented by |render_frame_host|. | 
| 30   virtual void DidStartProvisionalLoad( | 30   virtual void DidStartProvisionalLoad( | 
| 31       RenderFrameHostImpl* render_frame_host, | 31       RenderFrameHostImpl* render_frame_host, | 
| 32       const GURL& validated_url, | 32       const GURL& validated_url, | 
| 33       bool is_error_page, | 33       bool is_error_page, | 
| 34       bool is_iframe_srcdoc) {} | 34       bool is_iframe_srcdoc) {} | 
| 35 | 35 | 
|  | 36   // The |render_frame_host| started a transition-flagged navigation. | 
|  | 37   virtual void DidStartNavigationTransition( | 
|  | 38       RenderFrameHostImpl* render_frame_host) {} | 
|  | 39 | 
| 36   // A provisional load in |render_frame_host| failed. | 40   // A provisional load in |render_frame_host| failed. | 
| 37   virtual void DidFailProvisionalLoadWithError( | 41   virtual void DidFailProvisionalLoadWithError( | 
| 38       RenderFrameHostImpl* render_frame_host, | 42       RenderFrameHostImpl* render_frame_host, | 
| 39       const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {} | 43       const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {} | 
| 40 | 44 | 
| 41   // Document load in |render_frame_host| failed. | 45   // Document load in |render_frame_host| failed. | 
| 42   virtual void DidFailLoadWithError( | 46   virtual void DidFailLoadWithError( | 
| 43       RenderFrameHostImpl* render_frame_host, | 47       RenderFrameHostImpl* render_frame_host, | 
| 44       const GURL& url, | 48       const GURL& url, | 
| 45       int error_code, | 49       int error_code, | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 97                               const OpenURLParams& params) {} | 101                               const OpenURLParams& params) {} | 
| 98 | 102 | 
| 99   // Returns whether URLs for aborted browser-initiated navigations should be | 103   // Returns whether URLs for aborted browser-initiated navigations should be | 
| 100   // preserved in the omnibox.  Defaults to false. | 104   // preserved in the omnibox.  Defaults to false. | 
| 101   virtual bool ShouldPreserveAbortedURLs(); | 105   virtual bool ShouldPreserveAbortedURLs(); | 
| 102 }; | 106 }; | 
| 103 | 107 | 
| 104 }  // namspace content | 108 }  // namspace content | 
| 105 | 109 | 
| 106 #endif  // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 110 #endif  // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 
| OLD | NEW | 
|---|