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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "public/platform/WebURLRequest.h" | 54 #include "public/platform/WebURLRequest.h" |
55 #include <v8.h> | 55 #include <v8.h> |
56 | 56 |
57 namespace blink { | 57 namespace blink { |
58 | 58 |
59 enum class WebTreeScopeType; | 59 enum class WebTreeScopeType; |
60 class WebApplicationCacheHost; | 60 class WebApplicationCacheHost; |
61 class WebApplicationCacheHostClient; | 61 class WebApplicationCacheHostClient; |
62 class WebAppBannerClient; | 62 class WebAppBannerClient; |
63 class WebBluetooth; | 63 class WebBluetooth; |
64 class WebCachedURLRequest; | |
65 class WebColorChooser; | 64 class WebColorChooser; |
66 class WebColorChooserClient; | 65 class WebColorChooserClient; |
67 class WebContentDecryptionModule; | 66 class WebContentDecryptionModule; |
68 class WebCookieJar; | 67 class WebCookieJar; |
69 class WebDataSource; | 68 class WebDataSource; |
70 class WebEncryptedMediaClient; | 69 class WebEncryptedMediaClient; |
71 class WebExternalPopupMenu; | 70 class WebExternalPopupMenu; |
72 class WebExternalPopupMenuClient; | 71 class WebExternalPopupMenuClient; |
73 class WebFormElement; | 72 class WebFormElement; |
74 class WebGeolocationClient; | 73 class WebGeolocationClient; |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 // the given frame. Additional context data is supplied. | 404 // the given frame. Additional context data is supplied. |
406 virtual void showContextMenu(const WebContextMenuData&) { } | 405 virtual void showContextMenu(const WebContextMenuData&) { } |
407 | 406 |
408 // Called when the data attached to the currently displayed context menu is | 407 // Called when the data attached to the currently displayed context menu is |
409 // invalidated. The context menu may be closed if possible. | 408 // invalidated. The context menu may be closed if possible. |
410 virtual void clearContextMenu() { } | 409 virtual void clearContextMenu() { } |
411 | 410 |
412 | 411 |
413 // Low-level resource notifications ------------------------------------ | 412 // Low-level resource notifications ------------------------------------ |
414 | 413 |
415 // An element will request a resource. | |
416 virtual void willRequestResource(WebLocalFrame*, const WebCachedURLRequest&)
{ } | |
417 | |
418 // A request is about to be sent out, and the client may modify it. Request | 414 // A request is about to be sent out, and the client may modify it. Request |
419 // is writable, and changes to the URL, for example, will change the request | 415 // is writable, and changes to the URL, for example, will change the request |
420 // made. If this request is the result of a redirect, then redirectResponse | 416 // made. If this request is the result of a redirect, then redirectResponse |
421 // will be non-null and contain the response that triggered the redirect. | 417 // will be non-null and contain the response that triggered the redirect. |
422 virtual void willSendRequest( | 418 virtual void willSendRequest( |
423 WebLocalFrame*, unsigned identifier, WebURLRequest&, | 419 WebLocalFrame*, unsigned identifier, WebURLRequest&, |
424 const WebURLResponse& redirectResponse) { } | 420 const WebURLResponse& redirectResponse) { } |
425 | 421 |
426 // Response headers have been received for the resource request given | 422 // Response headers have been received for the resource request given |
427 // by identifier. | 423 // by identifier. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 // WebUSB -------------------------------------------------------------- | 677 // WebUSB -------------------------------------------------------------- |
682 virtual WebUSBClient* usbClient() { return nullptr; } | 678 virtual WebUSBClient* usbClient() { return nullptr; } |
683 | 679 |
684 protected: | 680 protected: |
685 virtual ~WebFrameClient() { } | 681 virtual ~WebFrameClient() { } |
686 }; | 682 }; |
687 | 683 |
688 } // namespace blink | 684 } // namespace blink |
689 | 685 |
690 #endif | 686 #endif |
OLD | NEW |