| 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 virtual void showContextMenu(const WebContextMenuData&) { } | 451 virtual void showContextMenu(const WebContextMenuData&) { } |
| 452 | 452 |
| 453 // This method is called in response to WebView's saveImageAt(x, y). | 453 // This method is called in response to WebView's saveImageAt(x, y). |
| 454 // A data url from <canvas> or <img> is passed to the method's argument. | 454 // A data url from <canvas> or <img> is passed to the method's argument. |
| 455 virtual void saveImageFromDataURL(const WebString&) { } | 455 virtual void saveImageFromDataURL(const WebString&) { } |
| 456 | 456 |
| 457 // Low-level resource notifications ------------------------------------ | 457 // Low-level resource notifications ------------------------------------ |
| 458 | 458 |
| 459 // A request is about to be sent out, and the client may modify it. Request | 459 // A request is about to be sent out, and the client may modify it. Request |
| 460 // is writable, and changes to the URL, for example, will change the request | 460 // is writable, and changes to the URL, for example, will change the request |
| 461 // made. If this request is the result of a redirect, then redirectResponse | 461 // made. |
| 462 // will be non-null and contain the response that triggered the redirect. | 462 virtual void willSendRequest(WebLocalFrame*, WebURLRequest&) {} |
| 463 virtual void willSendRequest( | |
| 464 WebLocalFrame*, unsigned identifier, WebURLRequest&, | |
| 465 const WebURLResponse& redirectResponse) { } | |
| 466 | 463 |
| 467 // Response headers have been received for the resource request given | 464 // Response headers have been received. |
| 468 // by identifier. | 465 virtual void didReceiveResponse(const WebURLResponse&) {} |
| 469 virtual void didReceiveResponse(unsigned identifier, const WebURLResponse&)
{ } | |
| 470 | |
| 471 virtual void didChangeResourcePriority( | |
| 472 unsigned identifier, const WebURLRequest::Priority& priority, int) { } | |
| 473 | |
| 474 // The resource request given by identifier succeeded. | |
| 475 virtual void didFinishResourceLoad( | |
| 476 WebLocalFrame*, unsigned identifier) { } | |
| 477 | 466 |
| 478 // The specified request was satified from WebCore's memory cache. | 467 // The specified request was satified from WebCore's memory cache. |
| 479 virtual void didLoadResourceFromMemoryCache( | 468 virtual void didLoadResourceFromMemoryCache( |
| 480 const WebURLRequest&, const WebURLResponse&) { } | 469 const WebURLRequest&, const WebURLResponse&) { } |
| 481 | 470 |
| 482 // This frame has displayed inactive content (such as an image) from an | 471 // This frame has displayed inactive content (such as an image) from an |
| 483 // insecure source. Inactive content cannot spread to other frames. | 472 // insecure source. Inactive content cannot spread to other frames. |
| 484 virtual void didDisplayInsecureContent() { } | 473 virtual void didDisplayInsecureContent() { } |
| 485 | 474 |
| 486 // The indicated security origin has run active content (such as a | 475 // The indicated security origin has run active content (such as a |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 return WebPageVisibilityStateVisible; | 691 return WebPageVisibilityStateVisible; |
| 703 } | 692 } |
| 704 | 693 |
| 705 protected: | 694 protected: |
| 706 virtual ~WebFrameClient() { } | 695 virtual ~WebFrameClient() { } |
| 707 }; | 696 }; |
| 708 | 697 |
| 709 } // namespace blink | 698 } // namespace blink |
| 710 | 699 |
| 711 #endif | 700 #endif |
| OLD | NEW |