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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // This is the interface to a SharedWorker thread. | 44 // This is the interface to a SharedWorker thread. |
45 class WebSharedWorker { | 45 class WebSharedWorker { |
46 public: | 46 public: |
47 // Invoked from the worker thread to instantiate a WebSharedWorker that inte
racts with the WebKit worker components. | 47 // Invoked from the worker thread to instantiate a WebSharedWorker that inte
racts with the WebKit worker components. |
48 BLINK_EXPORT static WebSharedWorker* create(WebSharedWorkerClient*); | 48 BLINK_EXPORT static WebSharedWorker* create(WebSharedWorkerClient*); |
49 | 49 |
50 virtual void startWorkerContext( | 50 virtual void startWorkerContext( |
51 const WebURL& scriptURL, | 51 const WebURL& scriptURL, |
52 const WebString& name, | 52 const WebString& name, |
53 const WebString& contentSecurityPolicy, | 53 const WebString& contentSecurityPolicy, |
54 WebContentSecurityPolicyType) = 0; | 54 WebContentSecurityPolicyType, |
| 55 const WebString& acceptLanguages) = 0; |
55 | 56 |
56 // Sends a connect event to the SharedWorker context. | 57 // Sends a connect event to the SharedWorker context. |
57 virtual void connect(WebMessagePortChannel*) = 0; | 58 virtual void connect(WebMessagePortChannel*) = 0; |
58 | 59 |
59 // Invoked to shutdown the worker when there are no more associated document
s. | 60 // Invoked to shutdown the worker when there are no more associated document
s. |
60 virtual void terminateWorkerContext() = 0; | 61 virtual void terminateWorkerContext() = 0; |
61 | 62 |
62 // Notification when the WebCommonWorkerClient is destroyed. | 63 // Notification when the WebCommonWorkerClient is destroyed. |
63 virtual void clientDestroyed() = 0; | 64 virtual void clientDestroyed() = 0; |
64 | 65 |
65 virtual void pauseWorkerContextOnStart() = 0; | 66 virtual void pauseWorkerContextOnStart() = 0; |
66 virtual void resumeWorkerContext() = 0; | 67 virtual void resumeWorkerContext() = 0; |
67 virtual void attachDevTools(const WebString& hostId) = 0; | 68 virtual void attachDevTools(const WebString& hostId) = 0; |
68 virtual void reattachDevTools(const WebString& hostId, const WebString& save
dState) = 0; | 69 virtual void reattachDevTools(const WebString& hostId, const WebString& save
dState) = 0; |
69 virtual void detachDevTools() = 0; | 70 virtual void detachDevTools() = 0; |
70 virtual void dispatchDevToolsMessage(const WebString&) = 0; | 71 virtual void dispatchDevToolsMessage(const WebString&) = 0; |
71 }; | 72 }; |
72 | 73 |
73 } // namespace blink | 74 } // namespace blink |
74 | 75 |
75 #endif | 76 #endif |
OLD | NEW |