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

Side by Side Diff: Source/core/loader/FrameLoaderClient.h

Issue 1111173002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebasing Created 5 years, 7 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
« no previous file with comments | « Source/core/loader/EmptyClients.cpp ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
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 27 matching lines...) Expand all
38 #include "core/loader/FrameLoaderTypes.h" 38 #include "core/loader/FrameLoaderTypes.h"
39 #include "core/loader/NavigationPolicy.h" 39 #include "core/loader/NavigationPolicy.h"
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "platform/network/ResourceLoadPriority.h" 41 #include "platform/network/ResourceLoadPriority.h"
42 #include "platform/weborigin/Referrer.h" 42 #include "platform/weborigin/Referrer.h"
43 #include "wtf/Forward.h" 43 #include "wtf/Forward.h"
44 #include "wtf/Vector.h" 44 #include "wtf/Vector.h"
45 #include <v8.h> 45 #include <v8.h>
46 46
47 namespace blink { 47 namespace blink {
48 class WebCookieJar;
49 class WebRTCPeerConnectionHandler;
50 class WebServiceWorkerProvider;
51 class WebSocketHandle;
52 class WebApplicationCacheHost;
53 class WebApplicationCacheHostClient;
54 }
55
56 namespace blink {
57 48
58 class Document; 49 class Document;
59 class DocumentLoader; 50 class DocumentLoader;
60 class FetchRequest; 51 class FetchRequest;
61 class HTMLAppletElement; 52 class HTMLAppletElement;
62 class HTMLFormElement; 53 class HTMLFormElement;
63 class HTMLFrameOwnerElement; 54 class HTMLFrameOwnerElement;
64 class HTMLPlugInElement; 55 class HTMLPlugInElement;
65 class HistoryItem; 56 class HistoryItem;
66 class KURL; 57 class KURL;
67 class LocalFrame; 58 class LocalFrame;
68 class PluginPlaceholder; 59 class PluginPlaceholder;
69 class ResourceError; 60 class ResourceError;
70 class ResourceRequest; 61 class ResourceRequest;
71 class ResourceResponse; 62 class ResourceResponse;
72 class SecurityOrigin; 63 class SecurityOrigin;
73 class SharedWorkerRepositoryClient; 64 class SharedWorkerRepositoryClient;
74 class SubstituteData; 65 class SubstituteData;
66 class WebCookieJar;
67 class WebRTCPeerConnectionHandler;
68 class WebServiceWorkerProvider;
69 class WebSocketHandle;
70 class WebApplicationCacheHost;
71 class WebApplicationCacheHostClient;
haraken 2015/04/29 11:39:28 Alphabetical order please.
75 class Widget; 72 class Widget;
76 73
77 class CORE_EXPORT FrameLoaderClient : public FrameClient { 74 class CORE_EXPORT FrameLoaderClient : public FrameClient {
78 public: 75 public:
79 virtual ~FrameLoaderClient() { } 76 virtual ~FrameLoaderClient() { }
80 77
81 virtual bool hasWebView() const = 0; // mainly for assertions 78 virtual bool hasWebView() const = 0; // mainly for assertions
82 79
83 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0; 80 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0;
84 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long i dentifier, const ResourceResponse&) = 0; 81 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long i dentifier, const ResourceResponse&) = 0;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 181
185 // This callback notifies the client that the frame was about to run 182 // This callback notifies the client that the frame was about to run
186 // JavaScript but did not because allowScript returned false. We 183 // JavaScript but did not because allowScript returned false. We
187 // have a separate callback here because there are a number of places 184 // have a separate callback here because there are a number of places
188 // that need to know if JavaScript is enabled but are not necessarily 185 // that need to know if JavaScript is enabled but are not necessarily
189 // preparing to execute script. 186 // preparing to execute script.
190 virtual void didNotAllowScript() { } 187 virtual void didNotAllowScript() { }
191 // This callback is similar, but for plugins. 188 // This callback is similar, but for plugins.
192 virtual void didNotAllowPlugins() { } 189 virtual void didNotAllowPlugins() { }
193 190
194 virtual blink::WebCookieJar* cookieJar() const = 0; 191 virtual WebCookieJar* cookieJar() const = 0;
195 192
196 virtual void didChangeName(const String&) { } 193 virtual void didChangeName(const String&) { }
197 194
198 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { } 195 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { }
199 196
200 virtual void dispatchWillOpenWebSocket(blink::WebSocketHandle*) { } 197 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { }
201 198
202 virtual void dispatchWillStartUsingPeerConnectionHandler(blink::WebRTCPe erConnectionHandler*) { } 199 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConne ctionHandler*) { }
203 200
204 virtual void didRequestAutocomplete(HTMLFormElement*) = 0; 201 virtual void didRequestAutocomplete(HTMLFormElement*) = 0;
205 202
206 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSett ings; } 203 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSett ings; }
207 // Informs the embedder that a WebGL canvas inside this frame received a lost context 204 // Informs the embedder that a WebGL canvas inside this frame received a lost context
208 // notification with the given GL_ARB_robustness guilt/innocence code (s ee Extensions3D.h). 205 // notification with the given GL_ARB_robustness guilt/innocence code (s ee Extensions3D.h).
209 virtual void didLoseWebGLContext(int) { } 206 virtual void didLoseWebGLContext(int) { }
210 207
211 // If an HTML document is being loaded, informs the embedder that the do cument will have its <body> attached soon. 208 // If an HTML document is being loaded, informs the embedder that the do cument will have its <body> attached soon.
212 virtual void dispatchWillInsertBody() { } 209 virtual void dispatchWillInsertBody() { }
213 210
214 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority, int intraPriorityValue) { } 211 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority, int intraPriorityValue) { }
215 212
216 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerP rovider() = 0; 213 virtual PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider () = 0;
217 214
218 virtual bool isControlledByServiceWorker(DocumentLoader&) = 0; 215 virtual bool isControlledByServiceWorker(DocumentLoader&) = 0;
219 216
220 virtual int64_t serviceWorkerID(DocumentLoader&) = 0; 217 virtual int64_t serviceWorkerID(DocumentLoader&) = 0;
221 218
222 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { r eturn 0; } 219 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { r eturn 0; }
223 220
224 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCach eHost(blink::WebApplicationCacheHostClient*) = 0; 221 virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(W ebApplicationCacheHostClient*) = 0;
225 222
226 virtual void didStopAllLoaders() { } 223 virtual void didStopAllLoaders() { }
227 224
228 virtual void dispatchDidChangeManifest() { } 225 virtual void dispatchDidChangeManifest() { }
229 226
230 virtual void dispatchDidChangeDefaultPresentation() { } 227 virtual void dispatchDidChangeDefaultPresentation() { }
231 228
232 virtual unsigned backForwardLength() { return 0; } 229 virtual unsigned backForwardLength() { return 0; }
233 230
234 virtual bool isFrameLoaderClientImpl() const { return false; } 231 virtual bool isFrameLoaderClientImpl() const { return false; }
235 232
236 // Called when elements preventing the sudden termination of the frame 233 // Called when elements preventing the sudden termination of the frame
237 // become present or stop being present. |type| is the type of element 234 // become present or stop being present. |type| is the type of element
238 // (BeforeUnload handler, Unload handler). 235 // (BeforeUnload handler, Unload handler).
239 enum SuddenTerminationDisablerType { 236 enum SuddenTerminationDisablerType {
240 BeforeUnloadHandler, 237 BeforeUnloadHandler,
241 UnloadHandler, 238 UnloadHandler,
242 }; 239 };
243 virtual void suddenTerminationDisablerChanged(bool present, SuddenTermin ationDisablerType) { } 240 virtual void suddenTerminationDisablerChanged(bool present, SuddenTermin ationDisablerType) { }
244 241
245 }; 242 };
246 243
247 } // namespace blink 244 } // namespace blink
248 245
249 #endif // FrameLoaderClient_h 246 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « Source/core/loader/EmptyClients.cpp ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698