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 #include "config.h" | |
6 #include "modules/fetch/GlobalFetch.h" | 5 #include "modules/fetch/GlobalFetch.h" |
7 | 6 |
8 #include "core/dom/ActiveDOMObject.h" | 7 #include "core/dom/ActiveDOMObject.h" |
9 #include "core/frame/LocalDOMWindow.h" | 8 #include "core/frame/LocalDOMWindow.h" |
10 #include "core/frame/UseCounter.h" | 9 #include "core/frame/UseCounter.h" |
11 #include "core/workers/WorkerGlobalScope.h" | 10 #include "core/workers/WorkerGlobalScope.h" |
12 #include "modules/fetch/FetchManager.h" | 11 #include "modules/fetch/FetchManager.h" |
13 #include "modules/fetch/Request.h" | 12 #include "modules/fetch/Request.h" |
14 #include "platform/Supplementable.h" | 13 #include "platform/Supplementable.h" |
15 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 132 } |
134 | 133 |
135 ScriptPromise GlobalFetch::fetch(ScriptState* scriptState, WorkerGlobalScope& wo
rker, const RequestInfo& input, const Dictionary& init, ExceptionState& exceptio
nState) | 134 ScriptPromise GlobalFetch::fetch(ScriptState* scriptState, WorkerGlobalScope& wo
rker, const RequestInfo& input, const Dictionary& init, ExceptionState& exceptio
nState) |
136 { | 135 { |
137 // Note that UseCounter doesn't work with SharedWorker or ServiceWorker. | 136 // Note that UseCounter doesn't work with SharedWorker or ServiceWorker. |
138 UseCounter::count(worker.executionContext(), UseCounter::Fetch); | 137 UseCounter::count(worker.executionContext(), UseCounter::Fetch); |
139 return ScopedFetcher::from(worker)->fetch(scriptState, input, init, exceptio
nState); | 138 return ScopedFetcher::from(worker)->fetch(scriptState, input, init, exceptio
nState); |
140 } | 139 } |
141 | 140 |
142 } // namespace blink | 141 } // namespace blink |
OLD | NEW |