| Index: Source/core/workers/WorkerScriptCachedMetadataHandler.h
|
| diff --git a/Source/core/workers/WorkerScriptCachedMetadataHandler.h b/Source/core/workers/WorkerScriptCachedMetadataHandler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..22f75b89ab315615755e735dfc0af654ed2bf022
|
| --- /dev/null
|
| +++ b/Source/core/workers/WorkerScriptCachedMetadataHandler.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WorkerScriptCachedMetadataHandler_h
|
| +#define WorkerScriptCachedMetadataHandler_h
|
| +
|
| +#include "core/fetch/CachedMetadataHandler.h"
|
| +#include "platform/weborigin/KURL.h"
|
| +#include "wtf/Vector.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class WorkerGlobalScope;
|
| +class CachedMetadata;
|
| +
|
| +class WorkerScriptCachedMetadataHandler : public CachedMetadataHandler {
|
| +public:
|
| + WorkerScriptCachedMetadataHandler(WorkerGlobalScope*, const KURL& /* scriptURL */, const Vector<char>* /* metaData */);
|
| + ~WorkerScriptCachedMetadataHandler() override;
|
| + void setCachedMetadata(unsigned /* dataTypeID */, const char*, size_t, CacheType) override;
|
| + void clearCachedMetadata(CacheType) override;
|
| + CachedMetadata* cachedMetadata(unsigned /* dataTypeID */) const override;
|
| + String encoding() const override;
|
| +
|
| +private:
|
| + WorkerGlobalScope* m_workerGlobalScope;
|
| + KURL m_scriptURL;
|
| + RefPtr<CachedMetadata> m_cachedMetadata;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WorkerScriptCachedMetadataHandler_h
|
|
|