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

Side by Side Diff: third_party/WebKit/public/web/WebSharedWorkerClient.h

Issue 2816403002: test all
Patch Set: fix sharedworker Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class WebApplicationCacheHost; 39 class WebApplicationCacheHost;
40 class WebApplicationCacheHostClient; 40 class WebApplicationCacheHostClient;
41 class WebNotificationPresenter; 41 class WebNotificationPresenter;
42 class WebSecurityOrigin; 42 class WebSecurityOrigin;
43 class WebServiceWorkerNetworkProvider; 43 class WebServiceWorkerNetworkProvider;
44 class WebString; 44 class WebString;
45 class WebWorkerContentSettingsClientProxy; 45 class WebWorkerContentSettingsClientProxy;
46 class WebWorkerFetchContext;
46 47
47 // Provides an interface back to the in-page script object for a worker. 48 // Provides an interface back to the in-page script object for a worker.
48 // All functions are expected to be called back on the thread that created 49 // All functions are expected to be called back on the thread that created
49 // the Worker object, unless noted. 50 // the Worker object, unless noted.
50 // An instance of this class must outlive or must have the identical lifetime 51 // An instance of this class must outlive or must have the identical lifetime
51 // as WebSharedWorker (i.e. must be kept alive until workerScriptLoadFailed() 52 // as WebSharedWorker (i.e. must be kept alive until workerScriptLoadFailed()
52 // or workerContextDestroyed() is called). 53 // or workerContextDestroyed() is called).
53 class WebSharedWorkerClient { 54 class WebSharedWorkerClient {
54 public: 55 public:
55 virtual void CountFeature(uint32_t) = 0; 56 virtual void CountFeature(uint32_t) = 0;
(...skipping 30 matching lines...) Expand all
86 } 87 }
87 88
88 virtual void SendDevToolsMessage(int session_id, 89 virtual void SendDevToolsMessage(int session_id,
89 int call_id, 90 int call_id,
90 const WebString& message, 91 const WebString& message,
91 const WebString& state) {} 92 const WebString& state) {}
92 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* 93 virtual WebDevToolsAgentClient::WebKitClientMessageLoop*
93 CreateDevToolsMessageLoop() { 94 CreateDevToolsMessageLoop() {
94 return nullptr; 95 return nullptr;
95 } 96 }
97
98 // Returns a new WebWorkerFetchContext for the shared worker.
99 // Ownership of the returned object is transferred to the caller. This is used
100 // only when off-main-thread-fetch is enabled.
101 virtual WebWorkerFetchContext* CreateWorkerFetchContext() { return 0; }
96 }; 102 };
97 103
98 } // namespace blink 104 } // namespace blink
99 105
100 #endif 106 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698