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

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

Powered by Google App Engine
This is Rietveld 408576698