OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 const WebString& stackTrace) {} | 267 const WebString& stackTrace) {} |
268 | 268 |
269 // Load commands ------------------------------------------------------- | 269 // Load commands ------------------------------------------------------- |
270 | 270 |
271 // The client should handle the navigation externally. | 271 // The client should handle the navigation externally. |
272 virtual void loadURLExternally(const WebURLRequest&, | 272 virtual void loadURLExternally(const WebURLRequest&, |
273 WebNavigationPolicy, | 273 WebNavigationPolicy, |
274 const WebString& downloadName, | 274 const WebString& downloadName, |
275 bool shouldReplaceCurrentEntry) {} | 275 bool shouldReplaceCurrentEntry) {} |
276 | 276 |
| 277 // The client should load an error page in the current frame. |
| 278 virtual void loadErrorPage(int reason) {} |
| 279 |
277 // Navigational queries ------------------------------------------------ | 280 // Navigational queries ------------------------------------------------ |
278 | 281 |
279 // The client may choose to alter the navigation policy. Otherwise, | 282 // The client may choose to alter the navigation policy. Otherwise, |
280 // defaultPolicy should just be returned. | 283 // defaultPolicy should just be returned. |
281 | 284 |
282 struct NavigationPolicyInfo { | 285 struct NavigationPolicyInfo { |
283 WebDataSource::ExtraData* extraData; | 286 WebDataSource::ExtraData* extraData; |
284 | 287 |
285 // Note: if browser side navigations are enabled, the client may modify | 288 // Note: if browser side navigations are enabled, the client may modify |
286 // the urlRequest. However, should this happen, the client should change | 289 // the urlRequest. However, should this happen, the client should change |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 // Overwrites the given URL to use an HTML5 embed if possible. | 758 // Overwrites the given URL to use an HTML5 embed if possible. |
756 // An empty URL is returned if the URL is not overriden. | 759 // An empty URL is returned if the URL is not overriden. |
757 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 760 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
758 return WebURL(); | 761 return WebURL(); |
759 } | 762 } |
760 }; | 763 }; |
761 | 764 |
762 } // namespace blink | 765 } // namespace blink |
763 | 766 |
764 #endif | 767 #endif |
OLD | NEW |