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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/inspector/InspectorNetworkAgent.h" 31 #include "core/inspector/InspectorNetworkAgent.h"
32 32
33 #include <memory>
33 #include "bindings/core/v8/ExceptionState.h" 34 #include "bindings/core/v8/ExceptionState.h"
34 #include "bindings/core/v8/SourceLocation.h" 35 #include "bindings/core/v8/SourceLocation.h"
35 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
36 #include "core/dom/ScriptableDocumentParser.h" 37 #include "core/dom/ScriptableDocumentParser.h"
37 #include "core/dom/TaskRunnerHelper.h" 38 #include "core/dom/TaskRunnerHelper.h"
38 #include "core/fileapi/FileReaderLoader.h" 39 #include "core/fileapi/FileReaderLoader.h"
39 #include "core/fileapi/FileReaderLoaderClient.h" 40 #include "core/fileapi/FileReaderLoaderClient.h"
40 #include "core/frame/FrameConsole.h" 41 #include "core/frame/FrameConsole.h"
41 #include "core/frame/FrameHost.h" 42 #include "core/frame/FrameHost.h"
42 #include "core/frame/LocalFrame.h" 43 #include "core/frame/LocalFrame.h"
(...skipping 28 matching lines...) Expand all
71 #include "platform/weborigin/KURL.h" 72 #include "platform/weborigin/KURL.h"
72 #include "platform/weborigin/ReferrerPolicy.h" 73 #include "platform/weborigin/ReferrerPolicy.h"
73 #include "platform/weborigin/SecurityOrigin.h" 74 #include "platform/weborigin/SecurityOrigin.h"
74 #include "public/platform/WebCachePolicy.h" 75 #include "public/platform/WebCachePolicy.h"
75 #include "public/platform/WebMixedContentContextType.h" 76 #include "public/platform/WebMixedContentContextType.h"
76 #include "public/platform/WebURLLoaderClient.h" 77 #include "public/platform/WebURLLoaderClient.h"
77 #include "public/platform/WebURLRequest.h" 78 #include "public/platform/WebURLRequest.h"
78 #include "wtf/CurrentTime.h" 79 #include "wtf/CurrentTime.h"
79 #include "wtf/RefPtr.h" 80 #include "wtf/RefPtr.h"
80 #include "wtf/text/Base64.h" 81 #include "wtf/text/Base64.h"
81 #include <memory>
82 82
83 namespace blink { 83 namespace blink {
84 84
85 using GetResponseBodyCallback = 85 using GetResponseBodyCallback =
86 protocol::Network::Backend::GetResponseBodyCallback; 86 protocol::Network::Backend::GetResponseBodyCallback;
87 87
88 namespace NetworkAgentState { 88 namespace NetworkAgentState {
89 static const char networkAgentEnabled[] = "networkAgentEnabled"; 89 static const char networkAgentEnabled[] = "networkAgentEnabled";
90 static const char extraRequestHeaders[] = "extraRequestHeaders"; 90 static const char extraRequestHeaders[] = "extraRequestHeaders";
91 static const char cacheDisabled[] = "cacheDisabled"; 91 static const char cacheDisabled[] = "cacheDisabled";
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 TaskRunnerHelper::get(TaskType::UnspecedLoading, 1548 TaskRunnerHelper::get(TaskType::UnspecedLoading,
1549 inspectedFrames->root()), 1549 inspectedFrames->root()),
1550 this, 1550 this,
1551 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} 1551 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {}
1552 1552
1553 bool InspectorNetworkAgent::shouldForceCORSPreflight() { 1553 bool InspectorNetworkAgent::shouldForceCORSPreflight() {
1554 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); 1554 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false);
1555 } 1555 }
1556 1556
1557 } // namespace blink 1557 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698