OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" | 49 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" |
50 #include "modules/serviceworkers/ServiceWorkerThread.h" | 50 #include "modules/serviceworkers/ServiceWorkerThread.h" |
51 #include "platform/Histogram.h" | 51 #include "platform/Histogram.h" |
52 #include "platform/SharedBuffer.h" | 52 #include "platform/SharedBuffer.h" |
53 #include "platform/heap/Handle.h" | 53 #include "platform/heap/Handle.h" |
54 #include "platform/loader/fetch/SubstituteData.h" | 54 #include "platform/loader/fetch/SubstituteData.h" |
55 #include "platform/network/ContentSecurityPolicyParsers.h" | 55 #include "platform/network/ContentSecurityPolicyParsers.h" |
56 #include "platform/network/ContentSecurityPolicyResponseHeaders.h" | 56 #include "platform/network/ContentSecurityPolicyResponseHeaders.h" |
57 #include "platform/network/NetworkUtils.h" | 57 #include "platform/network/NetworkUtils.h" |
58 #include "platform/weborigin/SecurityOrigin.h" | 58 #include "platform/weborigin/SecurityOrigin.h" |
| 59 #include "platform/wtf/Functional.h" |
| 60 #include "platform/wtf/PtrUtil.h" |
59 #include "public/platform/Platform.h" | 61 #include "public/platform/Platform.h" |
60 #include "public/platform/WebURLRequest.h" | 62 #include "public/platform/WebURLRequest.h" |
61 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" | 63 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
62 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" | 64 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
63 #include "public/web/WebConsoleMessage.h" | 65 #include "public/web/WebConsoleMessage.h" |
64 #include "public/web/WebDevToolsAgent.h" | 66 #include "public/web/WebDevToolsAgent.h" |
65 #include "public/web/WebSettings.h" | 67 #include "public/web/WebSettings.h" |
66 #include "public/web/WebView.h" | 68 #include "public/web/WebView.h" |
67 #include "public/web/WebWorkerContentSettingsClientProxy.h" | 69 #include "public/web/WebWorkerContentSettingsClientProxy.h" |
68 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" | 70 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" |
69 #include "web/IndexedDBClientImpl.h" | 71 #include "web/IndexedDBClientImpl.h" |
70 #include "web/ServiceWorkerGlobalScopeClientImpl.h" | 72 #include "web/ServiceWorkerGlobalScopeClientImpl.h" |
71 #include "web/ServiceWorkerGlobalScopeProxy.h" | 73 #include "web/ServiceWorkerGlobalScopeProxy.h" |
72 #include "web/WebDataSourceImpl.h" | 74 #include "web/WebDataSourceImpl.h" |
73 #include "web/WebLocalFrameImpl.h" | 75 #include "web/WebLocalFrameImpl.h" |
74 #include "web/WorkerContentSettingsClient.h" | 76 #include "web/WorkerContentSettingsClient.h" |
75 #include "wtf/Functional.h" | |
76 #include "wtf/PtrUtil.h" | |
77 | 77 |
78 namespace blink { | 78 namespace blink { |
79 | 79 |
80 WebEmbeddedWorker* WebEmbeddedWorker::create( | 80 WebEmbeddedWorker* WebEmbeddedWorker::create( |
81 WebServiceWorkerContextClient* client, | 81 WebServiceWorkerContextClient* client, |
82 WebWorkerContentSettingsClientProxy* contentSettingsClient) { | 82 WebWorkerContentSettingsClientProxy* contentSettingsClient) { |
83 return new WebEmbeddedWorkerImpl(WTF::wrapUnique(client), | 83 return new WebEmbeddedWorkerImpl(WTF::wrapUnique(client), |
84 WTF::wrapUnique(contentSettingsClient)); | 84 WTF::wrapUnique(contentSettingsClient)); |
85 } | 85 } |
86 | 86 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 *this, *document, *m_workerContextClient); | 471 *this, *document, *m_workerContextClient); |
472 m_loaderProxy = WorkerLoaderProxy::create(this); | 472 m_loaderProxy = WorkerLoaderProxy::create(this); |
473 m_workerThread = | 473 m_workerThread = |
474 ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalScopeProxy); | 474 ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalScopeProxy); |
475 m_workerThread->start(std::move(startupData), m_mainThreadTaskRunners.get()); | 475 m_workerThread->start(std::move(startupData), m_mainThreadTaskRunners.get()); |
476 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), | 476 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), |
477 scriptURL); | 477 scriptURL); |
478 } | 478 } |
479 | 479 |
480 } // namespace blink | 480 } // namespace blink |
OLD | NEW |