Chromium Code Reviews| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 // May return null. | 87 // May return null. |
| 88 virtual WebSharedWorker* createSharedWorker(WebFrame*, const WebURL&, const WebString&, unsigned long long) { return 0; } | 88 virtual WebSharedWorker* createSharedWorker(WebFrame*, const WebURL&, const WebString&, unsigned long long) { return 0; } |
| 89 | 89 |
| 90 // May return null. | 90 // May return null. |
| 91 virtual WebMediaPlayer* createMediaPlayer(WebFrame*, const WebURL&, WebMedia PlayerClient*) { return 0; } | 91 virtual WebMediaPlayer* createMediaPlayer(WebFrame*, const WebURL&, WebMedia PlayerClient*) { return 0; } |
| 92 | 92 |
| 93 // May return null. | 93 // May return null. |
| 94 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp plicationCacheHostClient*) { return 0; } | 94 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp plicationCacheHostClient*) { return 0; } |
| 95 | 95 |
| 96 // May return null. Takes ownership of the client. | 96 // May return null. Takes ownership of the client. |
| 97 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, Web ServiceWorkerProviderClient*) { return 0; } | 97 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, Web ServiceWorkerProviderClient* client ) |
| 98 { | |
| 99 if (client) | |
| 100 delete client; | |
| 101 return 0; | |
|
michaeln
2013/10/24 22:53:37
might read better as { delete client; return 0; }
alecflett
2013/10/24 23:06:14
oh wow, sure enough. apparently the last time I ma
| |
| 102 } | |
| 98 | 103 |
| 99 | 104 |
| 100 // Services ------------------------------------------------------------ | 105 // Services ------------------------------------------------------------ |
| 101 | 106 |
| 102 // A frame specific cookie jar. May return null, in which case | 107 // A frame specific cookie jar. May return null, in which case |
| 103 // WebKitPlatformSupport::cookieJar() will be called to access cookies. | 108 // WebKitPlatformSupport::cookieJar() will be called to access cookies. |
| 104 virtual WebCookieJar* cookieJar(WebFrame*) { return 0; } | 109 virtual WebCookieJar* cookieJar(WebFrame*) { return 0; } |
| 105 | 110 |
| 106 | 111 |
| 107 // General notifications ----------------------------------------------- | 112 // General notifications ----------------------------------------------- |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 373 // Extensions3D.h in WebCore/platform/graphics). | 378 // Extensions3D.h in WebCore/platform/graphics). |
| 374 virtual void didLoseWebGLContext(WebFrame*, int) { } | 379 virtual void didLoseWebGLContext(WebFrame*, int) { } |
| 375 | 380 |
| 376 protected: | 381 protected: |
| 377 ~WebFrameClient() { } | 382 ~WebFrameClient() { } |
| 378 }; | 383 }; |
| 379 | 384 |
| 380 } // namespace WebKit | 385 } // namespace WebKit |
| 381 | 386 |
| 382 #endif | 387 #endif |
| OLD | NEW |