Chromium Code Reviews| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 // Provides an interface back to the in-page script object for a worker. | 46 // Provides an interface back to the in-page script object for a worker. |
| 47 // All functions are expected to be called back on the thread that created | 47 // All functions are expected to be called back on the thread that created |
| 48 // the Worker object, unless noted. | 48 // the Worker object, unless noted. |
| 49 class WebSharedWorkerClient { | 49 class WebSharedWorkerClient { |
| 50 public: | 50 public: |
| 51 virtual void workerContextClosed() = 0; | 51 virtual void workerContextClosed() = 0; |
| 52 virtual void workerContextDestroyed() = 0; | 52 virtual void workerContextDestroyed() = 0; |
| 53 virtual void workerScriptLoaded() = 0; | 53 virtual void workerScriptLoaded() = 0; |
| 54 virtual void workerScriptLoadFailed() = 0; | 54 virtual void workerScriptLoadFailed() = 0; |
| 55 virtual void selectAppCacheID(long long) = 0; | 55 virtual void selectAppCacheID(long long) = 0; |
| 56 virtual bool enableMemoryInfo() { return false; } | |
|
kinuko
2014/02/28 05:23:29
I'd like to avoid adding specific settings/prefere
Pan
2014/02/28 07:38:40
I guess you mean we need a general method somethin
Pan
2014/03/03 09:16:52
Pachset 3 exposes WebWorkerSettings through WebAPI
| |
| 56 | 57 |
| 57 // Returns the notification presenter for this worker context. Pointer | 58 // Returns the notification presenter for this worker context. Pointer |
| 58 // is owned by the object implementing WebSharedWorkerClient. | 59 // is owned by the object implementing WebSharedWorkerClient. |
| 59 virtual WebNotificationPresenter* notificationPresenter() = 0; | 60 virtual WebNotificationPresenter* notificationPresenter() = 0; |
| 60 | 61 |
| 61 // Called on the main webkit thread in the worker process during | 62 // Called on the main webkit thread in the worker process during |
| 62 // initialization. | 63 // initialization. |
| 63 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0; | 64 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0; |
| 64 | 65 |
| 65 // Called on the main webkit thread in the worker process during | 66 // Called on the main webkit thread in the worker process during |
| 66 // initialization. | 67 // initialization. |
| 67 // WebWorkerPermissionClientProxy should not retain the given | 68 // WebWorkerPermissionClientProxy should not retain the given |
| 68 // WebSecurityOrigin, as the proxy instance is passed to worker thread | 69 // WebSecurityOrigin, as the proxy instance is passed to worker thread |
| 69 // while WebSecurityOrigin is not thread safe. | 70 // while WebSecurityOrigin is not thread safe. |
| 70 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return 0; } | 71 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return 0; } |
| 71 | 72 |
| 72 virtual void dispatchDevToolsMessage(const WebString&) { } | 73 virtual void dispatchDevToolsMessage(const WebString&) { } |
| 73 virtual void saveDevToolsAgentState(const WebString&) { } | 74 virtual void saveDevToolsAgentState(const WebString&) { } |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace blink | 77 } // namespace blink |
| 77 | 78 |
| 78 #endif | 79 #endif |
| OLD | NEW |