Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: public/web/WebFrameClient.h

Issue 42143002: Make createServiceWorkerProvider stub smarter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix #include Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index e2e2ce57967c13cb686ea614d2c5c5639d8dfaf0..b2b40d1133a11e911c3880cad59f0f1a9a72a50c 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -34,6 +34,7 @@
#include "../platform/WebCommon.h"
#include "../platform/WebFileSystem.h"
#include "../platform/WebFileSystemType.h"
+#include "../platform/WebServiceWorkerProviderClient.h"
michaeln 2013/10/24 22:59:09 i think the deps get confused because of the relat
#include "../platform/WebURLError.h"
#include "../platform/WebURLRequest.h"
#include "WebDOMMessageEvent.h"
@@ -59,7 +60,6 @@ class WebFrame;
class WebMediaPlayer;
class WebMediaPlayerClient;
class WebServiceWorkerProvider;
-class WebServiceWorkerProviderClient;
class WebNode;
class WebPlugin;
class WebRTCPeerConnectionHandler;
@@ -94,7 +94,12 @@ public:
virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebApplicationCacheHostClient*) { return 0; }
// May return null. Takes ownership of the client.
- virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, WebServiceWorkerProviderClient*) { return 0; }
+ virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, WebServiceWorkerProviderClient* client )
+ {
+ if (client)
+ delete client;
+ return 0;
+ }
// Services ------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698