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

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

Issue 968163003: Rename WorkerPermissionClient and friends to WorkerContentSettingsClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix 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 "../platform/WebMessagePortChannel.h" 34 #include "public/platform/WebMessagePortChannel.h"
35 #include "public/web/WebWorkerPermissionClientProxy.h"
35 36
36 namespace blink { 37 namespace blink {
37 38
38 class WebApplicationCacheHost; 39 class WebApplicationCacheHost;
39 class WebApplicationCacheHostClient; 40 class WebApplicationCacheHostClient;
40 class WebDataSource; 41 class WebDataSource;
41 class WebNotificationPresenter; 42 class WebNotificationPresenter;
42 class WebSecurityOrigin; 43 class WebSecurityOrigin;
43 class WebServiceWorkerNetworkProvider; 44 class WebServiceWorkerNetworkProvider;
44 class WebString; 45 class WebString;
45 class WebWorker; 46 class WebWorker;
46 class WebWorkerPermissionClientProxy; 47 class WebWorkerContentSettingsClientProxy;
47 48
48 // Provides an interface back to the in-page script object for a worker. 49 // Provides an interface back to the in-page script object for a worker.
49 // All functions are expected to be called back on the thread that created 50 // All functions are expected to be called back on the thread that created
50 // the Worker object, unless noted. 51 // the Worker object, unless noted.
51 class WebSharedWorkerClient { 52 class WebSharedWorkerClient {
52 public: 53 public:
53 virtual void workerContextClosed() = 0; 54 virtual void workerContextClosed() = 0;
54 virtual void workerContextDestroyed() = 0; 55 virtual void workerContextDestroyed() = 0;
55 virtual void workerReadyForInspection() { } 56 virtual void workerReadyForInspection() { }
56 virtual void workerScriptLoaded() = 0; 57 virtual void workerScriptLoaded() = 0;
57 virtual void workerScriptLoadFailed() = 0; 58 virtual void workerScriptLoadFailed() = 0;
58 virtual void selectAppCacheID(long long) = 0; 59 virtual void selectAppCacheID(long long) = 0;
59 60
60 // Returns the notification presenter for this worker context. Pointer 61 // Returns the notification presenter for this worker context. Pointer
61 // is owned by the object implementing WebSharedWorkerClient. 62 // is owned by the object implementing WebSharedWorkerClient.
62 virtual WebNotificationPresenter* notificationPresenter() = 0; 63 virtual WebNotificationPresenter* notificationPresenter() = 0;
63 64
64 // Called on the main webkit thread in the worker process during 65 // Called on the main webkit thread in the worker process during
65 // initialization. 66 // initialization.
66 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0; 67 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0;
67 68
68 // Called on the main thread during initialization. 69 // Called on the main thread during initialization.
69 // WebWorkerPermissionClientProxy should not retain the given 70 // WebWorkerContentSettingsClientProxy should not retain the given
70 // WebSecurityOrigin, as the proxy instance is passed to worker thread 71 // WebSecurityOrigin, as the proxy instance is passed to worker thread
71 // while WebSecurityOrigin is not thread safe. 72 // 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.
72 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return nullptr; } 78 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return nullptr; }
73 79
74 // Called on the main thread during initialization. 80 // Called on the main thread during initialization.
75 // Ownership of the returned object is transferred to the caller. 81 // Ownership of the returned object is transferred to the caller.
76 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; } 82 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; }
77 83
78 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { } 84 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { }
79 }; 85 };
80 86
81 } // namespace blink 87 } // namespace blink
82 88
83 #endif 89 #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