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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.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) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 rights reserved. 6 rights reserved.
7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
11 License as published by the Free Software Foundation; either 11 License as published by the Free Software Foundation; either
12 version 2 of the License, or (at your option) any later version. 12 version 2 of the License, or (at your option) any later version.
13 13
14 This library is distributed in the hope that it will be useful, 14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details. 17 Library General Public License for more details.
18 18
19 You should have received a copy of the GNU Library General Public License 19 You should have received a copy of the GNU Library General Public License
20 along with this library; see the file COPYING.LIB. If not, write to 20 along with this library; see the file COPYING.LIB. If not, write to
21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA. 22 Boston, MA 02110-1301, USA.
23 23
24 This class provides all functionality needed for loading images, style 24 This class provides all functionality needed for loading images, style
25 sheets and html pages from the web. It has a memory cache for these objects. 25 sheets and html pages from the web. It has a memory cache for these objects.
26 */ 26 */
27 27
28 #include "platform/loader/fetch/ResourceFetcher.h" 28 #include "platform/loader/fetch/ResourceFetcher.h"
29 29
30 #include <memory>
30 #include "platform/Histogram.h" 31 #include "platform/Histogram.h"
31 #include "platform/RuntimeEnabledFeatures.h" 32 #include "platform/RuntimeEnabledFeatures.h"
32 #include "platform/instrumentation/tracing/TraceEvent.h" 33 #include "platform/instrumentation/tracing/TraceEvent.h"
33 #include "platform/instrumentation/tracing/TracedValue.h" 34 #include "platform/instrumentation/tracing/TracedValue.h"
34 #include "platform/loader/fetch/FetchContext.h" 35 #include "platform/loader/fetch/FetchContext.h"
35 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" 36 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
36 #include "platform/loader/fetch/MemoryCache.h" 37 #include "platform/loader/fetch/MemoryCache.h"
37 #include "platform/loader/fetch/ResourceLoader.h" 38 #include "platform/loader/fetch/ResourceLoader.h"
38 #include "platform/loader/fetch/ResourceLoadingLog.h" 39 #include "platform/loader/fetch/ResourceLoadingLog.h"
39 #include "platform/loader/fetch/UniqueIdentifier.h" 40 #include "platform/loader/fetch/UniqueIdentifier.h"
40 #include "platform/mhtml/ArchiveResource.h" 41 #include "platform/mhtml/ArchiveResource.h"
41 #include "platform/mhtml/MHTMLArchive.h" 42 #include "platform/mhtml/MHTMLArchive.h"
42 #include "platform/network/NetworkInstrumentation.h" 43 #include "platform/network/NetworkInstrumentation.h"
43 #include "platform/network/NetworkUtils.h" 44 #include "platform/network/NetworkUtils.h"
44 #include "platform/network/ResourceTimingInfo.h" 45 #include "platform/network/ResourceTimingInfo.h"
45 #include "platform/weborigin/KnownPorts.h" 46 #include "platform/weborigin/KnownPorts.h"
46 #include "platform/weborigin/SecurityOrigin.h" 47 #include "platform/weborigin/SecurityOrigin.h"
47 #include "platform/weborigin/SecurityPolicy.h" 48 #include "platform/weborigin/SecurityPolicy.h"
48 #include "public/platform/Platform.h" 49 #include "public/platform/Platform.h"
49 #include "public/platform/WebCachePolicy.h" 50 #include "public/platform/WebCachePolicy.h"
50 #include "public/platform/WebURL.h" 51 #include "public/platform/WebURL.h"
51 #include "public/platform/WebURLRequest.h" 52 #include "public/platform/WebURLRequest.h"
52 #include "wtf/text/CString.h" 53 #include "wtf/text/CString.h"
53 #include "wtf/text/WTFString.h" 54 #include "wtf/text/WTFString.h"
54 #include <memory>
55 55
56 using blink::WebURLRequest; 56 using blink::WebURLRequest;
57 57
58 namespace blink { 58 namespace blink {
59 59
60 namespace { 60 namespace {
61 61
62 // Events for UMA. Do not reorder or delete. Add new events at the end, but 62 // Events for UMA. Do not reorder or delete. Add new events at the end, but
63 // before SriResourceIntegrityMismatchEventCount. 63 // before SriResourceIntegrityMismatchEventCount.
64 enum SriResourceIntegrityMismatchEvent { 64 enum SriResourceIntegrityMismatchEvent {
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 visitor->trace(m_context); 1540 visitor->trace(m_context);
1541 visitor->trace(m_archive); 1541 visitor->trace(m_archive);
1542 visitor->trace(m_loaders); 1542 visitor->trace(m_loaders);
1543 visitor->trace(m_nonBlockingLoaders); 1543 visitor->trace(m_nonBlockingLoaders);
1544 visitor->trace(m_documentResources); 1544 visitor->trace(m_documentResources);
1545 visitor->trace(m_preloads); 1545 visitor->trace(m_preloads);
1546 visitor->trace(m_resourceTimingInfoMap); 1546 visitor->trace(m_resourceTimingInfoMap);
1547 } 1547 }
1548 1548
1549 } // namespace blink 1549 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698