Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: Source/modules/serviceworkers/Request.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/serviceworkers/Request.h ('k') | Source/modules/serviceworkers/RequestInit.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 5 #include "config.h"
6 #include "Request.h" 6 #include "Request.h"
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "core/fetch/CrossOriginAccessControl.h" 10 #include "core/fetch/CrossOriginAccessControl.h"
11 #include "core/fetch/ResourceLoaderOptions.h" 11 #include "core/fetch/ResourceLoaderOptions.h"
12 #include "core/loader/ThreadableLoader.h" 12 #include "core/loader/ThreadableLoader.h"
13 #include "core/xml/XMLHttpRequest.h" 13 #include "core/xml/XMLHttpRequest.h"
14 #include "modules/serviceworkers/FetchManager.h" 14 #include "modules/serviceworkers/FetchManager.h"
15 #include "modules/serviceworkers/RequestInit.h" 15 #include "modules/serviceworkers/RequestInit.h"
16 #include "platform/NotImplemented.h" 16 #include "platform/NotImplemented.h"
17 #include "platform/network/HTTPParsers.h" 17 #include "platform/network/HTTPParsers.h"
18 #include "platform/network/ResourceRequest.h" 18 #include "platform/network/ResourceRequest.h"
19 #include "platform/weborigin/Referrer.h" 19 #include "platform/weborigin/Referrer.h"
20 #include "public/platform/WebServiceWorkerRequest.h" 20 #include "public/platform/WebServiceWorkerRequest.h"
21 #include "public/platform/WebURLRequest.h" 21 #include "public/platform/WebURLRequest.h"
22 22
23 namespace WebCore { 23 namespace blink {
24 24
25 namespace { 25 namespace {
26 26
27 PassRefPtrWillBeRawPtr<Request> createRequestWithRequestData(PassRefPtrWillBeRaw Ptr<FetchRequestData> request, const RequestInit& init, FetchRequestData::Mode m ode, FetchRequestData::Credentials credentials, ExceptionState& exceptionState) 27 PassRefPtrWillBeRawPtr<Request> createRequestWithRequestData(PassRefPtrWillBeRaw Ptr<FetchRequestData> request, const RequestInit& init, FetchRequestData::Mode m ode, FetchRequestData::Credentials credentials, ExceptionState& exceptionState)
28 { 28 {
29 // "6. Let |mode| be |init|'s mode member if it is present, and 29 // "6. Let |mode| be |init|'s mode member if it is present, and
30 // |fallbackMode| otherwise." 30 // |fallbackMode| otherwise."
31 // "7. If |mode| is non-null, set |request|'s mode to |mode|." 31 // "7. If |mode| is non-null, set |request|'s mode to |mode|."
32 if (init.mode == "same-origin") { 32 if (init.mode == "same-origin") {
33 request->setMode(FetchRequestData::SameOriginMode); 33 request->setMode(FetchRequestData::SameOriginMode);
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // FIXME: Fill more info. 264 // FIXME: Fill more info.
265 return request.release(); 265 return request.release();
266 } 266 }
267 267
268 void Request::trace(Visitor* visitor) 268 void Request::trace(Visitor* visitor)
269 { 269 {
270 visitor->trace(m_request); 270 visitor->trace(m_request);
271 visitor->trace(m_headers); 271 visitor->trace(m_headers);
272 } 272 }
273 273
274 } // namespace WebCore 274 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Request.h ('k') | Source/modules/serviceworkers/RequestInit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698