| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 virtual void startWorkerContext(const WebURL& scriptURL, | 53 virtual void startWorkerContext(const WebURL& scriptURL, |
| 54 const WebString& name, | 54 const WebString& name, |
| 55 const WebString& contentSecurityPolicy, | 55 const WebString& contentSecurityPolicy, |
| 56 WebContentSecurityPolicyType, | 56 WebContentSecurityPolicyType, |
| 57 WebAddressSpace) = 0; | 57 WebAddressSpace) = 0; |
| 58 | 58 |
| 59 // Sends a connect event to the SharedWorker context. | 59 // Sends a connect event to the SharedWorker context. |
| 60 virtual void connect(WebMessagePortChannel*) = 0; | 60 virtual void connect(WebMessagePortChannel*) = 0; |
| 61 | 61 |
| 62 // Invoked to shutdown the worker when there are no more associated documents.
This eventually deletes this instance. | 62 // Invoked to shutdown the worker when there are no more associated documents. |
| 63 // This eventually deletes this instance. |
| 63 virtual void terminateWorkerContext() = 0; | 64 virtual void terminateWorkerContext() = 0; |
| 64 | 65 |
| 65 virtual void pauseWorkerContextOnStart() = 0; | 66 virtual void pauseWorkerContextOnStart() = 0; |
| 66 virtual void attachDevTools(const WebString& hostId, int sessionId) = 0; | 67 virtual void attachDevTools(const WebString& hostId, int sessionId) = 0; |
| 67 virtual void reattachDevTools(const WebString& hostId, | 68 virtual void reattachDevTools(const WebString& hostId, |
| 68 int sessionId, | 69 int sessionId, |
| 69 const WebString& savedState) = 0; | 70 const WebString& savedState) = 0; |
| 70 virtual void detachDevTools() = 0; | 71 virtual void detachDevTools() = 0; |
| 71 virtual void dispatchDevToolsMessage(int sessionId, | 72 virtual void dispatchDevToolsMessage(int sessionId, |
| 72 int callId, | 73 int callId, |
| 73 const WebString& method, | 74 const WebString& method, |
| 74 const WebString& message) = 0; | 75 const WebString& message) = 0; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace blink | 78 } // namespace blink |
| 78 | 79 |
| 79 #endif | 80 #endif |
| OLD | NEW |