| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" | 5 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" |
| 6 | 6 |
| 7 #include "core/fetch/CachedMetadata.h" | |
| 8 #include "core/workers/WorkerGlobalScope.h" | 7 #include "core/workers/WorkerGlobalScope.h" |
| 9 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
| 9 #include "platform/loader/fetch/CachedMetadata.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 ServiceWorkerScriptCachedMetadataHandler:: | 13 ServiceWorkerScriptCachedMetadataHandler:: |
| 14 ServiceWorkerScriptCachedMetadataHandler( | 14 ServiceWorkerScriptCachedMetadataHandler( |
| 15 WorkerGlobalScope* workerGlobalScope, | 15 WorkerGlobalScope* workerGlobalScope, |
| 16 const KURL& scriptURL, | 16 const KURL& scriptURL, |
| 17 const Vector<char>* metaData) | 17 const Vector<char>* metaData) |
| 18 : m_workerGlobalScope(workerGlobalScope), m_scriptURL(scriptURL) { | 18 : m_workerGlobalScope(workerGlobalScope), m_scriptURL(scriptURL) { |
| 19 if (metaData) | 19 if (metaData) |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 if (!m_cachedMetadata || m_cachedMetadata->dataTypeID() != dataTypeID) | 58 if (!m_cachedMetadata || m_cachedMetadata->dataTypeID() != dataTypeID) |
| 59 return nullptr; | 59 return nullptr; |
| 60 return m_cachedMetadata.get(); | 60 return m_cachedMetadata.get(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 String ServiceWorkerScriptCachedMetadataHandler::encoding() const { | 63 String ServiceWorkerScriptCachedMetadataHandler::encoding() const { |
| 64 return emptyString(); | 64 return emptyString(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| OLD | NEW |