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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // NavigationController's last committed entry is for this navigation. | 70 // NavigationController's last committed entry is for this navigation. |
71 virtual void DidNavigateMainFramePostCommit( | 71 virtual void DidNavigateMainFramePostCommit( |
72 const LoadCommittedDetails& details, | 72 const LoadCommittedDetails& details, |
73 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} | 73 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} |
74 virtual void DidNavigateAnyFramePostCommit( | 74 virtual void DidNavigateAnyFramePostCommit( |
75 RenderFrameHostImpl* render_frame_host, | 75 RenderFrameHostImpl* render_frame_host, |
76 const LoadCommittedDetails& details, | 76 const LoadCommittedDetails& details, |
77 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} | 77 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} |
78 | 78 |
79 virtual void SetMainFrameMimeType(const std::string& mime_type) {} | 79 virtual void SetMainFrameMimeType(const std::string& mime_type) {} |
80 virtual bool CanOverscrollContent(); | 80 virtual bool CanOverscrollContent() const; |
81 | 81 |
82 // Notification to the Navigator embedder that navigation state has | 82 // Notification to the Navigator embedder that navigation state has |
83 // changed. This method corresponds to | 83 // changed. This method corresponds to |
84 // WebContents::NotifyNavigationStateChanged. | 84 // WebContents::NotifyNavigationStateChanged. |
85 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} | 85 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} |
86 | 86 |
87 // Notifies the Navigator embedder that it is beginning to navigate a frame. | 87 // Notifies the Navigator embedder that it is beginning to navigate a frame. |
88 virtual void AboutToNavigateRenderFrame( | 88 virtual void AboutToNavigateRenderFrame( |
89 RenderFrameHostImpl* render_frame_host) {} | 89 RenderFrameHostImpl* render_frame_host) {} |
90 | 90 |
(...skipping 10 matching lines...) Expand all Loading... |
101 const OpenURLParams& params) {} | 101 const OpenURLParams& params) {} |
102 | 102 |
103 // Returns whether URLs for aborted browser-initiated navigations should be | 103 // Returns whether URLs for aborted browser-initiated navigations should be |
104 // preserved in the omnibox. Defaults to false. | 104 // preserved in the omnibox. Defaults to false. |
105 virtual bool ShouldPreserveAbortedURLs(); | 105 virtual bool ShouldPreserveAbortedURLs(); |
106 }; | 106 }; |
107 | 107 |
108 } // namspace content | 108 } // namspace content |
109 | 109 |
110 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 110 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |