| Index: Source/modules/serviceworkers/FetchManager.h
|
| diff --git a/Source/modules/serviceworkers/FetchManager.h b/Source/modules/serviceworkers/FetchManager.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..769ff621bc267049868af4b5718ff8c3d182399f
|
| --- /dev/null
|
| +++ b/Source/modules/serviceworkers/FetchManager.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2014 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 FetchManager_h
|
| +#define FetchManager_h
|
| +
|
| +#include "bindings/v8/ScriptPromise.h"
|
| +#include "wtf/HashSet.h"
|
| +#include "wtf/OwnPtr.h"
|
| +
|
| +namespace WebCore {
|
| +
|
| +class ExecutionContext;
|
| +class ScriptState;
|
| +class ResourceRequest;
|
| +
|
| +class FetchManager {
|
| +public:
|
| + FetchManager(ExecutionContext*);
|
| + ~FetchManager();
|
| + ScriptPromise fetch(ScriptState*, PassOwnPtr<ResourceRequest>);
|
| +
|
| +private:
|
| + class Loader;
|
| +
|
| + // Removes loader from |m_loaders|.
|
| + void removeLoader(Loader*);
|
| +
|
| + ExecutionContext* m_executionContext;
|
| + HashSet<OwnPtr<Loader> > m_loaders;
|
| +};
|
| +
|
| +} // namespace WebCore
|
| +
|
| +#endif // FetchManager_h
|
|
|