OLD | NEW |
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 20 matching lines...) Expand all Loading... |
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 "public/platform/WebMessagePortChannel.h" |
35 #include "public/web/WebDevToolsAgentClient.h" | 35 #include "public/web/WebDevToolsAgentClient.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class WebApplicationCacheHost; | 39 class WebApplicationCacheHost; |
40 class WebApplicationCacheHostClient; | 40 class WebApplicationCacheHostClient; |
41 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 WebWorkerContentSettingsClientProxy; | 45 class WebWorkerContentSettingsClientProxy; |
47 | 46 |
48 // Provides an interface back to the in-page script object for a worker. | 47 // 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 | 48 // All functions are expected to be called back on the thread that created |
50 // the Worker object, unless noted. | 49 // the Worker object, unless noted. |
51 // An instance of this class must outlive or must have the identical lifetime | 50 // An instance of this class must outlive or must have the identical lifetime |
(...skipping 22 matching lines...) Expand all Loading... |
74 // WebWorkerContentSettingsClientProxy should not retain the given | 73 // WebWorkerContentSettingsClientProxy should not retain the given |
75 // WebSecurityOrigin, as the proxy instance is passed to worker thread | 74 // WebSecurityOrigin, as the proxy instance is passed to worker thread |
76 // while WebSecurityOrigin is not thread safe. | 75 // while WebSecurityOrigin is not thread safe. |
77 virtual WebWorkerContentSettingsClientProxy* | 76 virtual WebWorkerContentSettingsClientProxy* |
78 createWorkerContentSettingsClientProxy(const WebSecurityOrigin& origin) { | 77 createWorkerContentSettingsClientProxy(const WebSecurityOrigin& origin) { |
79 return nullptr; | 78 return nullptr; |
80 } | 79 } |
81 | 80 |
82 // Called on the main thread during initialization. | 81 // Called on the main thread during initialization. |
83 // Ownership of the returned object is transferred to the caller. | 82 // Ownership of the returned object is transferred to the caller. |
84 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( | 83 virtual WebServiceWorkerNetworkProvider* |
85 WebDataSource*) { | 84 createServiceWorkerNetworkProvider() { |
86 return nullptr; | 85 return nullptr; |
87 } | 86 } |
88 | 87 |
89 virtual void sendDevToolsMessage(int sessionId, | 88 virtual void sendDevToolsMessage(int sessionId, |
90 int callId, | 89 int callId, |
91 const WebString& message, | 90 const WebString& message, |
92 const WebString& state) {} | 91 const WebString& state) {} |
93 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* | 92 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* |
94 createDevToolsMessageLoop() { | 93 createDevToolsMessageLoop() { |
95 return nullptr; | 94 return nullptr; |
96 } | 95 } |
97 }; | 96 }; |
98 | 97 |
99 } // namespace blink | 98 } // namespace blink |
100 | 99 |
101 #endif | 100 #endif |
OLD | NEW |