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

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

Issue 1836973003: Move download messages from Renderer to Frame filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RenderViewHostTest Created 4 years, 6 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) 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // the user selects 'OK' or false otherwise. 437 // the user selects 'OK' or false otherwise.
438 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } 438 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; }
439 439
440 440
441 // UI ------------------------------------------------------------------ 441 // UI ------------------------------------------------------------------
442 442
443 // Shows a context menu with commands relevant to a specific element on 443 // Shows a context menu with commands relevant to a specific element on
444 // the given frame. Additional context data is supplied. 444 // the given frame. Additional context data is supplied.
445 virtual void showContextMenu(const WebContextMenuData&) { } 445 virtual void showContextMenu(const WebContextMenuData&) { }
446 446
447 // This method is called in response to WebView's saveImageAt(x, y).
448 // A data url from <canvas> or <img> is passed to the method's argument.
449 virtual void saveImageFromDataURL(const WebString&) { }
450
447 // Low-level resource notifications ------------------------------------ 451 // Low-level resource notifications ------------------------------------
448 452
449 // A request is about to be sent out, and the client may modify it. Request 453 // A request is about to be sent out, and the client may modify it. Request
450 // is writable, and changes to the URL, for example, will change the request 454 // is writable, and changes to the URL, for example, will change the request
451 // made. If this request is the result of a redirect, then redirectResponse 455 // made. If this request is the result of a redirect, then redirectResponse
452 // will be non-null and contain the response that triggered the redirect. 456 // will be non-null and contain the response that triggered the redirect.
453 virtual void willSendRequest( 457 virtual void willSendRequest(
454 WebLocalFrame*, unsigned identifier, WebURLRequest&, 458 WebLocalFrame*, unsigned identifier, WebURLRequest&,
455 const WebURLResponse& redirectResponse) { } 459 const WebURLResponse& redirectResponse) { }
456 460
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 // Mojo ---------------------------------------------------------------- 708 // Mojo ----------------------------------------------------------------
705 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 709 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
706 710
707 protected: 711 protected:
708 virtual ~WebFrameClient() { } 712 virtual ~WebFrameClient() { }
709 }; 713 };
710 714
711 } // namespace blink 715 } // namespace blink
712 716
713 #endif 717 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698