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

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

Issue 2211283004: Drop test-only WebFrameClient params/functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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, 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 class WebServiceWorkerProvider; 83 class WebServiceWorkerProvider;
84 class WebSocketHandle; 84 class WebSocketHandle;
85 class Widget; 85 class Widget;
86 86
87 class CORE_EXPORT FrameLoaderClient : public FrameClient { 87 class CORE_EXPORT FrameLoaderClient : public FrameClient {
88 public: 88 public:
89 ~FrameLoaderClient() override {} 89 ~FrameLoaderClient() override {}
90 90
91 virtual bool hasWebView() const = 0; // mainly for assertions 91 virtual bool hasWebView() const = 0; // mainly for assertions
92 92
93 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long identifi er, ResourceRequest&, const ResourceResponse& redirectResponse) = 0; 93 virtual void dispatchWillSendRequest(ResourceRequest&) = 0;
94 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long ident ifier, const ResourceResponse&) = 0; 94 virtual void dispatchDidReceiveResponse(const ResourceResponse&) = 0;
95 virtual void dispatchDidFinishLoading(DocumentLoader*, unsigned long identif ier) = 0;
96 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&, const ResourceResponse&) = 0; 95 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&, const ResourceResponse&) = 0;
97 96
98 virtual void dispatchDidHandleOnloadEvents() = 0; 97 virtual void dispatchDidHandleOnloadEvents() = 0;
99 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() = 0; 98 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() = 0;
100 virtual void dispatchDidNavigateWithinPage(HistoryItem*, HistoryCommitType, bool contentInitiated) { } 99 virtual void dispatchDidNavigateWithinPage(HistoryItem*, HistoryCommitType, bool contentInitiated) { }
101 virtual void dispatchWillClose() = 0; 100 virtual void dispatchWillClose() = 0;
102 virtual void dispatchDidStartProvisionalLoad(double triggeringEventTime) = 0 ; 101 virtual void dispatchDidStartProvisionalLoad(double triggeringEventTime) = 0 ;
103 virtual void dispatchDidReceiveTitle(const String&) = 0; 102 virtual void dispatchDidReceiveTitle(const String&) = 0;
104 virtual void dispatchDidChangeIcons(IconType) = 0; 103 virtual void dispatchDidChangeIcons(IconType) = 0;
105 virtual void dispatchDidCommitLoad(HistoryItem*, HistoryCommitType) = 0; 104 virtual void dispatchDidCommitLoad(HistoryItem*, HistoryCommitType) = 0;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 233
235 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { } 234 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { }
236 235
237 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio nHandler*) { } 236 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio nHandler*) { }
238 237
239 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSettings ; } 238 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSettings ; }
240 239
241 // If an HTML document is being loaded, informs the embedder that the docume nt will have its <body> attached soon. 240 // If an HTML document is being loaded, informs the embedder that the docume nt will have its <body> attached soon.
242 virtual void dispatchWillInsertBody() { } 241 virtual void dispatchWillInsertBody() { }
243 242
244 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res ourceLoadPriority, int intraPriorityValue) { }
245
246 virtual std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvide r() = 0; 243 virtual std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvide r() = 0;
247 244
248 virtual bool isControlledByServiceWorker(DocumentLoader&) = 0; 245 virtual bool isControlledByServiceWorker(DocumentLoader&) = 0;
249 246
250 virtual int64_t serviceWorkerID(DocumentLoader&) = 0; 247 virtual int64_t serviceWorkerID(DocumentLoader&) = 0;
251 248
252 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { retur n 0; } 249 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { retur n 0; }
253 250
254 virtual std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( WebApplicationCacheHostClient*) = 0; 251 virtual std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( WebApplicationCacheHostClient*) = 0;
255 252
(...skipping 18 matching lines...) Expand all
274 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; } 271 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; }
275 272
276 // Overwrites the given URL to use an HTML5 embed if possible. 273 // Overwrites the given URL to use an HTML5 embed if possible.
277 // An empty URL is returned if the URL is not overriden. 274 // An empty URL is returned if the URL is not overriden.
278 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 275 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
279 }; 276 };
280 277
281 } // namespace blink 278 } // namespace blink
282 279
283 #endif // FrameLoaderClient_h 280 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContext.cpp ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698