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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 2781723007: Plumb initiator out of Blink. (Closed)
Patch Set: Created 3 years, 8 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 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 String EmptyChromeClient::acceptLanguages() { 120 String EmptyChromeClient::acceptLanguages() {
121 return String(); 121 return String();
122 } 122 }
123 123
124 std::unique_ptr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler( 124 std::unique_ptr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler(
125 BlameContext*) { 125 BlameContext*) {
126 return WTF::makeUnique<EmptyFrameScheduler>(); 126 return WTF::makeUnique<EmptyFrameScheduler>();
127 } 127 }
128 128
129 NavigationPolicy EmptyLocalFrameClient::decidePolicyForNavigation( 129 NavigationPolicy EmptyLocalFrameClient::decidePolicyForNavigation(
130 Document* originDocument,
130 const ResourceRequest&, 131 const ResourceRequest&,
131 DocumentLoader*, 132 DocumentLoader*,
132 NavigationType, 133 NavigationType,
133 NavigationPolicy, 134 NavigationPolicy,
134 bool, 135 bool,
135 bool, 136 bool,
136 HTMLFormElement*, 137 HTMLFormElement*,
137 ContentSecurityPolicyDisposition) { 138 ContentSecurityPolicyDisposition) {
138 return NavigationPolicyIgnore; 139 return NavigationPolicyIgnore;
139 } 140 }
140 141
141 void EmptyLocalFrameClient::dispatchWillSendSubmitEvent(HTMLFormElement*) {} 142 void EmptyLocalFrameClient::dispatchWillSendSubmitEvent(HTMLFormElement*) {}
142 143
143 void EmptyLocalFrameClient::dispatchWillSubmitForm(HTMLFormElement*) {} 144 void EmptyLocalFrameClient::dispatchWillSubmitForm(HTMLFormElement*) {}
144 145
145 DocumentLoader* EmptyLocalFrameClient::createDocumentLoader( 146 DocumentLoader* EmptyLocalFrameClient::createDocumentLoader(
146 LocalFrame* frame, 147 LocalFrame* frame,
147 const ResourceRequest& request, 148 const ResourceRequest& request,
148 const SubstituteData& substituteData, 149 const SubstituteData& substituteData,
149 ClientRedirectPolicy clientRedirectPolicy) { 150 ClientRedirectPolicy clientRedirectPolicy,
151 Document* originDocument) {
150 DCHECK(frame); 152 DCHECK(frame);
151 153
152 return DocumentLoader::create(frame, request, substituteData, 154 return DocumentLoader::create(frame, request, substituteData,
153 clientRedirectPolicy); 155 clientRedirectPolicy, originDocument);
154 } 156 }
155 157
156 LocalFrame* EmptyLocalFrameClient::createFrame(const FrameLoadRequest&, 158 LocalFrame* EmptyLocalFrameClient::createFrame(const FrameLoadRequest&,
157 const AtomicString&, 159 const AtomicString&,
158 HTMLFrameOwnerElement*) { 160 HTMLFrameOwnerElement*) {
159 return nullptr; 161 return nullptr;
160 } 162 }
161 163
162 PluginView* EmptyLocalFrameClient::createPlugin(HTMLPlugInElement*, 164 PluginView* EmptyLocalFrameClient::createPlugin(HTMLPlugInElement*,
163 const KURL&, 165 const KURL&,
(...skipping 28 matching lines...) Expand all
192 194
193 std::unique_ptr<WebApplicationCacheHost> 195 std::unique_ptr<WebApplicationCacheHost>
194 EmptyLocalFrameClient::createApplicationCacheHost( 196 EmptyLocalFrameClient::createApplicationCacheHost(
195 WebApplicationCacheHostClient*) { 197 WebApplicationCacheHostClient*) {
196 return nullptr; 198 return nullptr;
197 } 199 }
198 200
199 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; 201 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default;
200 202
201 } // namespace blink 203 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.h ('k') | third_party/WebKit/Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698