| 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/workers/WorkerGlobalScope.h" | 7 #include "core/workers/WorkerGlobalScope.h" |
| 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
| 9 #include "platform/loader/fetch/CachedMetadata.h" | 9 #include "platform/loader/fetch/CachedMetadata.h" |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 PassRefPtr<CachedMetadata> | 55 PassRefPtr<CachedMetadata> |
| 56 ServiceWorkerScriptCachedMetadataHandler::cachedMetadata( | 56 ServiceWorkerScriptCachedMetadataHandler::cachedMetadata( |
| 57 uint32_t dataTypeID) const { | 57 uint32_t dataTypeID) const { |
| 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 |