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

Side by Side Diff: public/web/WebFrameClient.h

Issue 42143002: Make createServiceWorkerProvider stub smarter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix #include lines and delete 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebFrameClient_h 31 #ifndef WebFrameClient_h
32 #define WebFrameClient_h 32 #define WebFrameClient_h
33 33
34 #include "../platform/WebCommon.h"
35 #include "../platform/WebFileSystem.h"
36 #include "../platform/WebFileSystemType.h"
37 #include "../platform/WebURLError.h"
38 #include "../platform/WebURLRequest.h"
39 #include "WebDOMMessageEvent.h" 34 #include "WebDOMMessageEvent.h"
40 #include "WebDataSource.h" 35 #include "WebDataSource.h"
41 #include "WebIconURL.h" 36 #include "WebIconURL.h"
42 #include "WebNavigationPolicy.h" 37 #include "WebNavigationPolicy.h"
43 #include "WebNavigationType.h" 38 #include "WebNavigationType.h"
44 #include "WebSecurityOrigin.h" 39 #include "WebSecurityOrigin.h"
45 #include "WebStorageQuotaType.h" 40 #include "WebStorageQuotaType.h"
46 #include "WebTextDirection.h" 41 #include "WebTextDirection.h"
42 #include "public/platform/WebCommon.h"
43 #include "public/platform/WebFileSystem.h"
44 #include "public/platform/WebFileSystemType.h"
45 #include "public/platform/WebServiceWorkerProviderClient.h"
46 #include "public/platform/WebURLError.h"
47 #include "public/platform/WebURLRequest.h"
47 #include <v8.h> 48 #include <v8.h>
48 49
49 namespace WebKit { 50 namespace WebKit {
50 51
51 class WebApplicationCacheHost; 52 class WebApplicationCacheHost;
52 class WebApplicationCacheHostClient; 53 class WebApplicationCacheHostClient;
53 class WebCachedURLRequest; 54 class WebCachedURLRequest;
54 class WebCookieJar; 55 class WebCookieJar;
55 class WebDataSource; 56 class WebDataSource;
56 class WebDOMEvent; 57 class WebDOMEvent;
57 class WebFormElement; 58 class WebFormElement;
58 class WebFrame; 59 class WebFrame;
59 class WebMediaPlayer; 60 class WebMediaPlayer;
60 class WebMediaPlayerClient; 61 class WebMediaPlayerClient;
61 class WebServiceWorkerProvider; 62 class WebServiceWorkerProvider;
62 class WebServiceWorkerProviderClient;
63 class WebNode; 63 class WebNode;
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;
(...skipping 14 matching lines...) Expand all
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 ) { delete client; return 0; }
abarth-chromium 2013/10/25 15:29:51 I don't think we want to call |delete| in an API h
98 98
99 99
100 // Services ------------------------------------------------------------ 100 // Services ------------------------------------------------------------
101 101
102 // A frame specific cookie jar. May return null, in which case 102 // A frame specific cookie jar. May return null, in which case
103 // WebKitPlatformSupport::cookieJar() will be called to access cookies. 103 // WebKitPlatformSupport::cookieJar() will be called to access cookies.
104 virtual WebCookieJar* cookieJar(WebFrame*) { return 0; } 104 virtual WebCookieJar* cookieJar(WebFrame*) { return 0; }
105 105
106 106
107 // General notifications ----------------------------------------------- 107 // General notifications -----------------------------------------------
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // Extensions3D.h in WebCore/platform/graphics). 373 // Extensions3D.h in WebCore/platform/graphics).
374 virtual void didLoseWebGLContext(WebFrame*, int) { } 374 virtual void didLoseWebGLContext(WebFrame*, int) { }
375 375
376 protected: 376 protected:
377 ~WebFrameClient() { } 377 ~WebFrameClient() { }
378 }; 378 };
379 379
380 } // namespace WebKit 380 } // namespace WebKit
381 381
382 #endif 382 #endif
OLDNEW
« 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