| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // WebCore provides hooks for several kinds of functionality, allowing separate | 5 // WebCore provides hooks for several kinds of functionality, allowing separate |
| 6 // classes termed "delegates" to receive notifications (in the form of direct | 6 // classes termed "delegates" to receive notifications (in the form of direct |
| 7 // function calls) when certain events are about to occur or have just occurred. | 7 // function calls) when certain events are about to occur or have just occurred. |
| 8 // In some cases, the delegate implements the needed functionality; in others, | 8 // In some cases, the delegate implements the needed functionality; in others, |
| 9 // the delegate has some control over the behavior but doesn't actually | 9 // the delegate has some control over the behavior but doesn't actually |
| 10 // implement it. For example, the UI delegate is responsible for showing a | 10 // implement it. For example, the UI delegate is responsible for showing a |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 WebFrame* frame, | 211 WebFrame* frame, |
| 212 const WebRequest* request, | 212 const WebRequest* request, |
| 213 WebNavigationType type, | 213 WebNavigationType type, |
| 214 WindowOpenDisposition disposition, | 214 WindowOpenDisposition disposition, |
| 215 bool is_redirect) { | 215 bool is_redirect) { |
| 216 return disposition; | 216 return disposition; |
| 217 } | 217 } |
| 218 | 218 |
| 219 // FrameLoadDelegate ------------------------------------------------------- | 219 // FrameLoadDelegate ------------------------------------------------------- |
| 220 | 220 |
| 221 // A datasource has been created for a new navigation. The given datasource |
| 222 // will become the provisional datasource for the frame. |
| 223 virtual void DidCreateDataSource(WebFrame* frame, WebDataSource* ds) { |
| 224 } |
| 225 |
| 221 // Notifies the delegate that the provisional load of a specified frame in a | 226 // Notifies the delegate that the provisional load of a specified frame in a |
| 222 // given WebView has started. By the time the provisional load for a frame has | 227 // given WebView has started. By the time the provisional load for a frame has |
| 223 // started, we know whether or not the current load is due to a client | 228 // started, we know whether or not the current load is due to a client |
| 224 // redirect or not, so we pass this information through to allow us to set | 229 // redirect or not, so we pass this information through to allow us to set |
| 225 // the referrer properly in those cases. The consumed_client_redirect_src is | 230 // the referrer properly in those cases. The consumed_client_redirect_src is |
| 226 // an empty invalid GURL in other cases. | 231 // an empty invalid GURL in other cases. |
| 227 virtual void DidStartProvisionalLoadForFrame( | 232 virtual void DidStartProvisionalLoadForFrame( |
| 228 WebView* webview, | 233 WebView* webview, |
| 229 WebFrame* frame, | 234 WebFrame* frame, |
| 230 NavigationGesture gesture) { | 235 NavigationGesture gesture) { |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 virtual void DidAddHistoryItem() { } | 783 virtual void DidAddHistoryItem() { } |
| 779 | 784 |
| 780 WebViewDelegate() { } | 785 WebViewDelegate() { } |
| 781 virtual ~WebViewDelegate() { } | 786 virtual ~WebViewDelegate() { } |
| 782 | 787 |
| 783 private: | 788 private: |
| 784 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); | 789 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); |
| 785 }; | 790 }; |
| 786 | 791 |
| 787 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 792 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |