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 25 matching lines...) Expand all Loading... | |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class WebApplicationCacheHost; | 39 class WebApplicationCacheHost; |
| 40 class WebApplicationCacheHostClient; | 40 class WebApplicationCacheHostClient; |
| 41 class WebNotificationPresenter; | 41 class WebNotificationPresenter; |
| 42 class WebSecurityOrigin; | 42 class WebSecurityOrigin; |
| 43 class WebServiceWorkerNetworkProvider; | 43 class WebServiceWorkerNetworkProvider; |
| 44 class WebString; | 44 class WebString; |
| 45 class WebWorkerContentSettingsClientProxy; | 45 class WebWorkerContentSettingsClientProxy; |
| 46 class WebWorkerFetchContext; | |
| 46 | 47 |
| 47 // Provides an interface back to the in-page script object for a worker. | 48 // Provides an interface back to the in-page script object for a worker. |
| 48 // All functions are expected to be called back on the thread that created | 49 // All functions are expected to be called back on the thread that created |
| 49 // the Worker object, unless noted. | 50 // the Worker object, unless noted. |
| 50 // An instance of this class must outlive or must have the identical lifetime | 51 // An instance of this class must outlive or must have the identical lifetime |
| 51 // as WebSharedWorker (i.e. must be kept alive until workerScriptLoadFailed() | 52 // as WebSharedWorker (i.e. must be kept alive until workerScriptLoadFailed() |
| 52 // or workerContextDestroyed() is called). | 53 // or workerContextDestroyed() is called). |
| 53 class WebSharedWorkerClient { | 54 class WebSharedWorkerClient { |
| 54 public: | 55 public: |
| 55 virtual void CountFeature(uint32_t) = 0; | 56 virtual void CountFeature(uint32_t) = 0; |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 86 } | 87 } |
| 87 | 88 |
| 88 virtual void SendDevToolsMessage(int session_id, | 89 virtual void SendDevToolsMessage(int session_id, |
| 89 int call_id, | 90 int call_id, |
| 90 const WebString& message, | 91 const WebString& message, |
| 91 const WebString& state) {} | 92 const WebString& state) {} |
| 92 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* | 93 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* |
| 93 CreateDevToolsMessageLoop() { | 94 CreateDevToolsMessageLoop() { |
| 94 return nullptr; | 95 return nullptr; |
| 95 } | 96 } |
| 97 | |
| 98 // Returns a new WebWorkerFetchContext for the shared worker. Ownership of the | |
| 99 // returned object is transferred to the caller. This is used only when | |
| 100 // off-main-thread-fetch is enabled. | |
| 101 virtual WebWorkerFetchContext* CreateWorkerFetchContext() { return nullptr; } | |
|
kinuko
2017/04/20 04:08:14
ditto (unique_ptr)
nhiroki
2017/04/20 04:16:07
How about returning std::unique_ptr<WebWorkerFetch
horo
2017/04/20 08:35:43
Done.
| |
| 96 }; | 102 }; |
| 97 | 103 |
| 98 } // namespace blink | 104 } // namespace blink |
| 99 | 105 |
| 100 #endif | 106 #endif |
| OLD | NEW |