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

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

Issue 973103003: Revert of Rename WorkerPermissionClient and friends to WorkerContentSettingsClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 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 WebSharedWorkerClient_h 31 #ifndef WebSharedWorkerClient_h
32 #define WebSharedWorkerClient_h 32 #define WebSharedWorkerClient_h
33 33
34 #include "public/platform/WebMessagePortChannel.h" 34 #include "../platform/WebMessagePortChannel.h"
35 #include "public/web/WebWorkerPermissionClientProxy.h"
36 35
37 namespace blink { 36 namespace blink {
38 37
39 class WebApplicationCacheHost; 38 class WebApplicationCacheHost;
40 class WebApplicationCacheHostClient; 39 class WebApplicationCacheHostClient;
41 class WebDataSource; 40 class WebDataSource;
42 class WebNotificationPresenter; 41 class WebNotificationPresenter;
43 class WebSecurityOrigin; 42 class WebSecurityOrigin;
44 class WebServiceWorkerNetworkProvider; 43 class WebServiceWorkerNetworkProvider;
45 class WebString; 44 class WebString;
46 class WebWorker; 45 class WebWorker;
47 class WebWorkerContentSettingsClientProxy; 46 class WebWorkerPermissionClientProxy;
48 47
49 // 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.
50 // 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
51 // the Worker object, unless noted. 50 // the Worker object, unless noted.
52 class WebSharedWorkerClient { 51 class WebSharedWorkerClient {
53 public: 52 public:
54 virtual void workerContextClosed() = 0; 53 virtual void workerContextClosed() = 0;
55 virtual void workerContextDestroyed() = 0; 54 virtual void workerContextDestroyed() = 0;
56 virtual void workerReadyForInspection() { } 55 virtual void workerReadyForInspection() { }
57 virtual void workerScriptLoaded() = 0; 56 virtual void workerScriptLoaded() = 0;
58 virtual void workerScriptLoadFailed() = 0; 57 virtual void workerScriptLoadFailed() = 0;
59 virtual void selectAppCacheID(long long) = 0; 58 virtual void selectAppCacheID(long long) = 0;
60 59
61 // Returns the notification presenter for this worker context. Pointer 60 // Returns the notification presenter for this worker context. Pointer
62 // is owned by the object implementing WebSharedWorkerClient. 61 // is owned by the object implementing WebSharedWorkerClient.
63 virtual WebNotificationPresenter* notificationPresenter() = 0; 62 virtual WebNotificationPresenter* notificationPresenter() = 0;
64 63
65 // Called on the main webkit thread in the worker process during 64 // Called on the main webkit thread in the worker process during
66 // initialization. 65 // initialization.
67 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0; 66 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0;
68 67
69 // Called on the main thread during initialization. 68 // Called on the main thread during initialization.
70 // WebWorkerContentSettingsClientProxy should not retain the given 69 // WebWorkerPermissionClientProxy should not retain the given
71 // WebSecurityOrigin, as the proxy instance is passed to worker thread 70 // WebSecurityOrigin, as the proxy instance is passed to worker thread
72 // while WebSecurityOrigin is not thread safe. 71 // while WebSecurityOrigin is not thread safe.
73 virtual WebWorkerContentSettingsClientProxy* createWorkerContentSettingsClie ntProxy(const WebSecurityOrigin& origin)
74 {
75 return createWorkerPermissionClientProxy(origin);
76 }
77 // Deprecated call required by embedder.
78 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return nullptr; } 72 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return nullptr; }
79 73
80 // Called on the main thread during initialization. 74 // Called on the main thread during initialization.
81 // Ownership of the returned object is transferred to the caller. 75 // Ownership of the returned object is transferred to the caller.
82 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; } 76 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; }
83 77
84 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { } 78 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { }
85 }; 79 };
86 80
87 } // namespace blink 81 } // namespace blink
88 82
89 #endif 83 #endif
OLDNEW
« no previous file with comments | « public/web/WebServiceWorkerContextClient.h ('k') | public/web/WebWorkerContentSettingsClientProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698