| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef GlobalFetch_h | 5 #ifndef GlobalFetch_h |
| 6 #define GlobalFetch_h | 6 #define GlobalFetch_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "modules/fetch/Request.h" | 10 #include "modules/fetch/Request.h" |
| 11 #include "wtf/WeakPtr.h" | |
| 12 | 11 |
| 13 namespace blink { | 12 namespace blink { |
| 14 | 13 |
| 15 class Dictionary; | 14 class Dictionary; |
| 16 class DOMWindow; | 15 class DOMWindow; |
| 17 class ExceptionState; | 16 class ExceptionState; |
| 18 class ScriptState; | 17 class ScriptState; |
| 19 class WorkerGlobalScope; | 18 class WorkerGlobalScope; |
| 20 | 19 |
| 21 class GlobalFetch { | 20 class GlobalFetch { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 DECLARE_VIRTUAL_TRACE(); | 32 DECLARE_VIRTUAL_TRACE(); |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 static ScriptPromise fetch(ScriptState*, DOMWindow&, const RequestInfo&, con
st Dictionary&, ExceptionState&); | 35 static ScriptPromise fetch(ScriptState*, DOMWindow&, const RequestInfo&, con
st Dictionary&, ExceptionState&); |
| 37 static ScriptPromise fetch(ScriptState*, WorkerGlobalScope&, const RequestIn
fo&, const Dictionary&, ExceptionState&); | 36 static ScriptPromise fetch(ScriptState*, WorkerGlobalScope&, const RequestIn
fo&, const Dictionary&, ExceptionState&); |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 } // namespace blink | 39 } // namespace blink |
| 41 | 40 |
| 42 #endif // GlobalFetch_h | 41 #endif // GlobalFetch_h |
| OLD | NEW |