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

Side by Side Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 1371673002: Remove a bunch of provisionalDataSource() usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Notification that some progress was made loading the current frame. 247 // Notification that some progress was made loading the current frame.
248 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully 248 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully
249 // loaded). 249 // loaded).
250 virtual void didChangeLoadProgress(double loadProgress) { } 250 virtual void didChangeLoadProgress(double loadProgress) { }
251 251
252 // A form submission has been requested, but the page's submit event handler 252 // A form submission has been requested, but the page's submit event handler
253 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) 253 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.)
254 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } 254 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { }
255 255
256 // A form submission is about to occur. 256 // A form submission is about to occur.
257 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } 257 virtual void willSubmitForm(WebDataSource*, const WebFormElement&) {}
258 258
259 // A datasource has been created for a new navigation. The given 259 // A datasource has been created for a new navigation. The given
260 // datasource will become the provisional datasource for the frame. 260 // datasource will become the provisional datasource for the frame.
261 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } 261 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { }
262 262
263 // A new provisional load has been started. 263 // A new provisional load has been started.
264 virtual void didStartProvisionalLoad(WebLocalFrame* localFrame, double trigg eringEventTime) { } 264 virtual void didStartProvisionalLoad(WebDataSource*, double triggeringEventT ime) {}
265 265
266 // The provisional load was redirected via a HTTP 3xx response. 266 // The provisional load was redirected via a HTTP 3xx response.
267 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) { } 267 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) { }
268 268
269 // The provisional load failed. The WebHistoryCommitType is the commit type 269 // The provisional load failed. The WebHistoryCommitType is the commit type
270 // that would have been used had the load succeeded. 270 // that would have been used had the load succeeded.
271 virtual void didFailProvisionalLoad(WebLocalFrame*, const WebURLError&, WebH istoryCommitType) { } 271 virtual void didFailProvisionalLoad(WebDataSource*, const WebURLError&, WebH istoryCommitType) {}
272 272
273 // The provisional datasource is now committed. The first part of the 273 // The provisional datasource is now committed. The first part of the
274 // response body has been received, and the encoding of the response 274 // response body has been received, and the encoding of the response
275 // body is known. 275 // body is known.
276 virtual void didCommitProvisionalLoad(WebLocalFrame*, const WebHistoryItem&, WebHistoryCommitType) { } 276 virtual void didCommitProvisionalLoad(WebLocalFrame*, const WebHistoryItem&, WebHistoryCommitType) { }
277 277
278 // The frame's document has just been initialized. 278 // The frame's document has just been initialized.
279 virtual void didCreateNewDocument(WebLocalFrame* frame) { } 279 virtual void didCreateNewDocument(WebLocalFrame* frame) { }
280 280
281 // The window object for the frame has been cleared of any extra 281 // The window object for the frame has been cleared of any extra
(...skipping 12 matching lines...) Expand all
294 294
295 // The frame's document finished loading. 295 // The frame's document finished loading.
296 virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { } 296 virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { }
297 297
298 // The 'load' event was dispatched. 298 // The 'load' event was dispatched.
299 virtual void didHandleOnloadEvents(WebLocalFrame*) { } 299 virtual void didHandleOnloadEvents(WebLocalFrame*) { }
300 300
301 // The frame's document or one of its subresources failed to load. The 301 // The frame's document or one of its subresources failed to load. The
302 // WebHistoryCommitType is the commit type that would have been used had the 302 // WebHistoryCommitType is the commit type that would have been used had the
303 // load succeeded. 303 // load succeeded.
304 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi tType) { } 304 virtual void didFailLoad(WebDataSource*, const WebURLError&, WebHistoryCommi tType) {}
305 305
306 // The frame's document and all of its subresources succeeded to load. 306 // The frame's document and all of its subresources succeeded to load.
307 virtual void didFinishLoad(WebLocalFrame*) { } 307 virtual void didFinishLoad(WebLocalFrame*) { }
308 308
309 // The navigation resulted in no change to the documents within the page. 309 // The navigation resulted in no change to the documents within the page.
310 // For example, the navigation may have just resulted in scrolling to a 310 // For example, the navigation may have just resulted in scrolling to a
311 // named anchor or a PopState event may have been dispatched. 311 // named anchor or a PopState event may have been dispatched.
312 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We bHistoryCommitType) { } 312 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We bHistoryCommitType) { }
313 313
314 // Called upon update to scroll position, document state, and other 314 // Called upon update to scroll position, document state, and other
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 virtual void clearContextMenu() { } 401 virtual void clearContextMenu() { }
402 402
403 403
404 // Low-level resource notifications ------------------------------------ 404 // Low-level resource notifications ------------------------------------
405 405
406 // A request is about to be sent out, and the client may modify it. Request 406 // A request is about to be sent out, and the client may modify it. Request
407 // is writable, and changes to the URL, for example, will change the request 407 // is writable, and changes to the URL, for example, will change the request
408 // made. If this request is the result of a redirect, then redirectResponse 408 // made. If this request is the result of a redirect, then redirectResponse
409 // will be non-null and contain the response that triggered the redirect. 409 // will be non-null and contain the response that triggered the redirect.
410 virtual void willSendRequest( 410 virtual void willSendRequest(
411 WebLocalFrame*, unsigned identifier, WebURLRequest&, 411 WebDataSource*, unsigned identifier, WebURLRequest&,
412 const WebURLResponse& redirectResponse) { } 412 const WebURLResponse& redirectResponse) {}
413 413
414 // Response headers have been received for the resource request given 414 // Response headers have been received for the resource request given
415 // by identifier. 415 // by identifier.
416 virtual void didReceiveResponse( 416 virtual void didReceiveResponse(
417 WebLocalFrame*, unsigned identifier, const WebURLResponse&) { } 417 WebLocalFrame*, unsigned identifier, const WebURLResponse&) { }
418 418
419 virtual void didChangeResourcePriority( 419 virtual void didChangeResourcePriority(
420 WebLocalFrame* webFrame, unsigned identifier, const WebURLRequest::Prior ity& priority, int) { } 420 WebLocalFrame* webFrame, unsigned identifier, const WebURLRequest::Prior ity& priority, int) { }
421 421
422 // The resource request given by identifier succeeded. 422 // The resource request given by identifier succeeded.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 // WebUSB -------------------------------------------------------------- 671 // WebUSB --------------------------------------------------------------
672 virtual WebUSBClient* usbClient() { return nullptr; } 672 virtual WebUSBClient* usbClient() { return nullptr; }
673 673
674 protected: 674 protected:
675 virtual ~WebFrameClient() { } 675 virtual ~WebFrameClient() { }
676 }; 676 };
677 677
678 } // namespace blink 678 } // namespace blink
679 679
680 #endif 680 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698