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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved.
3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com) 3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 11 matching lines...) Expand all
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "platform/loader/fetch/ResourceLoader.h" 30 #include "platform/loader/fetch/ResourceLoader.h"
31 31
32 #include <memory>
32 #include "platform/SharedBuffer.h" 33 #include "platform/SharedBuffer.h"
33 #include "platform/exported/WrappedResourceRequest.h" 34 #include "platform/exported/WrappedResourceRequest.h"
34 #include "platform/exported/WrappedResourceResponse.h" 35 #include "platform/exported/WrappedResourceResponse.h"
35 #include "platform/loader/fetch/CrossOriginAccessControl.h" 36 #include "platform/loader/fetch/CrossOriginAccessControl.h"
36 #include "platform/loader/fetch/FetchContext.h" 37 #include "platform/loader/fetch/FetchContext.h"
37 #include "platform/loader/fetch/Resource.h" 38 #include "platform/loader/fetch/Resource.h"
38 #include "platform/loader/fetch/ResourceFetcher.h" 39 #include "platform/loader/fetch/ResourceFetcher.h"
39 #include "platform/network/NetworkInstrumentation.h" 40 #include "platform/network/NetworkInstrumentation.h"
40 #include "platform/network/ResourceError.h" 41 #include "platform/network/ResourceError.h"
41 #include "public/platform/Platform.h" 42 #include "public/platform/Platform.h"
42 #include "public/platform/WebCachePolicy.h" 43 #include "public/platform/WebCachePolicy.h"
43 #include "public/platform/WebData.h" 44 #include "public/platform/WebData.h"
44 #include "public/platform/WebURLError.h" 45 #include "public/platform/WebURLError.h"
45 #include "public/platform/WebURLRequest.h" 46 #include "public/platform/WebURLRequest.h"
46 #include "public/platform/WebURLResponse.h" 47 #include "public/platform/WebURLResponse.h"
47 #include "wtf/Assertions.h" 48 #include "wtf/Assertions.h"
48 #include "wtf/CurrentTime.h" 49 #include "wtf/CurrentTime.h"
49 #include "wtf/PtrUtil.h" 50 #include "wtf/PtrUtil.h"
50 #include "wtf/text/StringBuilder.h" 51 #include "wtf/text/StringBuilder.h"
51 #include <memory>
52 52
53 namespace blink { 53 namespace blink {
54 54
55 ResourceLoader* ResourceLoader::create(ResourceFetcher* fetcher, 55 ResourceLoader* ResourceLoader::create(ResourceFetcher* fetcher,
56 Resource* resource) { 56 Resource* resource) {
57 return new ResourceLoader(fetcher, resource); 57 return new ResourceLoader(fetcher, resource);
58 } 58 }
59 59
60 ResourceLoader::ResourceLoader(ResourceFetcher* fetcher, Resource* resource) 60 ResourceLoader::ResourceLoader(ResourceFetcher* fetcher, Resource* resource)
61 : m_fetcher(fetcher), 61 : m_fetcher(fetcher),
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 return; 521 return;
522 522
523 // Don't activate if cache policy is explicitly set. 523 // Don't activate if cache policy is explicitly set.
524 if (request.getCachePolicy() != WebCachePolicy::UseProtocolCachePolicy) 524 if (request.getCachePolicy() != WebCachePolicy::UseProtocolCachePolicy)
525 return; 525 return;
526 526
527 m_isCacheAwareLoadingActivated = true; 527 m_isCacheAwareLoadingActivated = true;
528 } 528 }
529 529
530 } // namespace blink 530 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698