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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 class WebPlugin; | 64 class WebPlugin; |
65 class WebRTCPeerConnectionHandler; | 65 class WebRTCPeerConnectionHandler; |
66 class WebSharedWorker; | 66 class WebSharedWorker; |
67 class WebSharedWorkerClient; | 67 class WebSharedWorkerClient; |
68 class WebSocketStreamHandle; | 68 class WebSocketStreamHandle; |
69 class WebStorageQuotaCallbacks; | 69 class WebStorageQuotaCallbacks; |
70 class WebString; | 70 class WebString; |
71 class WebURL; | 71 class WebURL; |
72 class WebURLLoader; | 72 class WebURLLoader; |
73 class WebURLResponse; | 73 class WebURLResponse; |
74 class WebWorker; | 74 class WebWorkerPermissionClientProxy; |
75 struct WebPluginParams; | 75 struct WebPluginParams; |
76 struct WebRect; | 76 struct WebRect; |
77 struct WebSize; | 77 struct WebSize; |
78 struct WebURLError; | 78 struct WebURLError; |
79 | 79 |
80 class WebFrameClient { | 80 class WebFrameClient { |
81 public: | 81 public: |
82 // Factory methods ----------------------------------------------------- | 82 // Factory methods ----------------------------------------------------- |
83 | 83 |
84 // May return null. | 84 // May return null. |
85 virtual WebPlugin* createPlugin(WebFrame*, const WebPluginParams&) { return
0; } | 85 virtual WebPlugin* createPlugin(WebFrame*, const WebPluginParams&) { return
0; } |
86 | 86 |
87 // May return null. | 87 // May return null. |
88 virtual WebMediaPlayer* createMediaPlayer(WebFrame*, const WebURL&, WebMedia
PlayerClient*) { return 0; } | 88 virtual WebMediaPlayer* createMediaPlayer(WebFrame*, const WebURL&, WebMedia
PlayerClient*) { return 0; } |
89 | 89 |
90 // May return null. | 90 // May return null. |
91 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp
plicationCacheHostClient*) { return 0; } | 91 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp
plicationCacheHostClient*) { return 0; } |
92 | 92 |
93 // May return null. Takes ownership of the client. | 93 // May return null. Takes ownership of the client. |
94 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, Web
ServiceWorkerProviderClient*) { return 0; } | 94 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, Web
ServiceWorkerProviderClient*) { return 0; } |
95 | 95 |
| 96 // May return null. |
| 97 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(We
bFrame*) { return 0; } |
| 98 |
96 | 99 |
97 // Services ------------------------------------------------------------ | 100 // Services ------------------------------------------------------------ |
98 | 101 |
99 // A frame specific cookie jar. May return null, in which case | 102 // A frame specific cookie jar. May return null, in which case |
100 // WebKitPlatformSupport::cookieJar() will be called to access cookies. | 103 // WebKitPlatformSupport::cookieJar() will be called to access cookies. |
101 virtual WebCookieJar* cookieJar(WebFrame*) { return 0; } | 104 virtual WebCookieJar* cookieJar(WebFrame*) { return 0; } |
102 | 105 |
103 | 106 |
104 // General notifications ----------------------------------------------- | 107 // General notifications ----------------------------------------------- |
105 | 108 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 // Extensions3D.h in WebCore/platform/graphics). | 373 // Extensions3D.h in WebCore/platform/graphics). |
371 virtual void didLoseWebGLContext(WebFrame*, int) { } | 374 virtual void didLoseWebGLContext(WebFrame*, int) { } |
372 | 375 |
373 protected: | 376 protected: |
374 ~WebFrameClient() { } | 377 ~WebFrameClient() { } |
375 }; | 378 }; |
376 | 379 |
377 } // namespace WebKit | 380 } // namespace WebKit |
378 | 381 |
379 #endif | 382 #endif |
OLD | NEW |