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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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/loader/FrameFetchContext.h" 31 #include "core/loader/FrameFetchContext.h"
32 32
33 #include <algorithm>
34 #include <memory>
33 #include "bindings/core/v8/ScriptController.h" 35 #include "bindings/core/v8/ScriptController.h"
34 #include "bindings/core/v8/V8DOMActivityLogger.h" 36 #include "bindings/core/v8/V8DOMActivityLogger.h"
35 #include "core/dom/Document.h" 37 #include "core/dom/Document.h"
36 #include "core/frame/Deprecation.h" 38 #include "core/frame/Deprecation.h"
37 #include "core/frame/FrameConsole.h" 39 #include "core/frame/FrameConsole.h"
38 #include "core/frame/FrameHost.h" 40 #include "core/frame/FrameHost.h"
39 #include "core/frame/FrameView.h" 41 #include "core/frame/FrameView.h"
40 #include "core/frame/LocalDOMWindow.h" 42 #include "core/frame/LocalDOMWindow.h"
41 #include "core/frame/LocalFrame.h" 43 #include "core/frame/LocalFrame.h"
42 #include "core/frame/Settings.h" 44 #include "core/frame/Settings.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include "platform/network/NetworkUtils.h" 76 #include "platform/network/NetworkUtils.h"
75 #include "platform/network/ResourceLoadPriority.h" 77 #include "platform/network/ResourceLoadPriority.h"
76 #include "platform/network/ResourceTimingInfo.h" 78 #include "platform/network/ResourceTimingInfo.h"
77 #include "platform/weborigin/SchemeRegistry.h" 79 #include "platform/weborigin/SchemeRegistry.h"
78 #include "platform/weborigin/SecurityPolicy.h" 80 #include "platform/weborigin/SecurityPolicy.h"
79 #include "public/platform/WebCachePolicy.h" 81 #include "public/platform/WebCachePolicy.h"
80 #include "public/platform/WebDocumentSubresourceFilter.h" 82 #include "public/platform/WebDocumentSubresourceFilter.h"
81 #include "public/platform/WebInsecureRequestPolicy.h" 83 #include "public/platform/WebInsecureRequestPolicy.h"
82 #include "public/platform/WebViewScheduler.h" 84 #include "public/platform/WebViewScheduler.h"
83 #include "wtf/Vector.h" 85 #include "wtf/Vector.h"
84 #include <algorithm>
85 #include <memory>
86 86
87 namespace blink { 87 namespace blink {
88 88
89 namespace { 89 namespace {
90 90
91 void emitWarningForDocWriteScripts(const String& url, Document& document) { 91 void emitWarningForDocWriteScripts(const String& url, Document& document) {
92 String message = 92 String message =
93 "A Parser-blocking, cross site (i.e. different eTLD+1) script, " + url + 93 "A Parser-blocking, cross site (i.e. different eTLD+1) script, " + url +
94 ", is invoked via document.write. This MAY be blocked by " 94 ", is invoked via document.write. This MAY be blocked by "
95 "the browser in this or a future page load due to poor network " 95 "the browser in this or a future page load due to poor network "
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 response); 1105 response);
1106 } 1106 }
1107 1107
1108 DEFINE_TRACE(FrameFetchContext) { 1108 DEFINE_TRACE(FrameFetchContext) {
1109 visitor->trace(m_document); 1109 visitor->trace(m_document);
1110 visitor->trace(m_documentLoader); 1110 visitor->trace(m_documentLoader);
1111 FetchContext::trace(visitor); 1111 FetchContext::trace(visitor);
1112 } 1112 }
1113 1113
1114 } // namespace blink 1114 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698