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

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

Issue 1973133002: ✀ Remove postMessage plumbing for swappedout:// ✀ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to use std::move instead of release(). Created 4 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
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 574
575 // Encrypted Media ------------------------------------------------- 575 // Encrypted Media -------------------------------------------------
576 576
577 virtual WebEncryptedMediaClient* encryptedMediaClient() { return 0; } 577 virtual WebEncryptedMediaClient* encryptedMediaClient() { return 0; }
578 578
579 579
580 // Web MIDI ------------------------------------------------------------- 580 // Web MIDI -------------------------------------------------------------
581 581
582 virtual WebMIDIClient* webMIDIClient() { return 0; } 582 virtual WebMIDIClient* webMIDIClient() { return 0; }
583 583
584 584 // User agent ------------------------------------------------------
585 // Messages ------------------------------------------------------
586
587 // Notifies the embedder that a postMessage was issued on this frame, and
588 // gives the embedder a chance to handle it instead of WebKit. Returns true
589 // if the embedder handled it.
590 virtual bool willCheckAndDispatchMessageEvent(
591 WebLocalFrame* sourceFrame,
592 WebFrame* targetFrame,
593 WebSecurityOrigin target,
594 WebDOMMessageEvent event) { return false; }
595 585
596 // Asks the embedder if a specific user agent should be used. Non-empty 586 // Asks the embedder if a specific user agent should be used. Non-empty
597 // strings indicate an override should be used. Otherwise, 587 // strings indicate an override should be used. Otherwise,
598 // Platform::current()->userAgent() will be called to provide one. 588 // Platform::current()->userAgent() will be called to provide one.
599 virtual WebString userAgentOverride() { return WebString(); } 589 virtual WebString userAgentOverride() { return WebString(); }
600 590
591 // Do not track ----------------------------------------------------
592
601 // Asks the embedder what value the network stack will send for the DNT 593 // Asks the embedder what value the network stack will send for the DNT
602 // header. An empty string indicates that no DNT header will be send. 594 // header. An empty string indicates that no DNT header will be send.
603 virtual WebString doNotTrackValue() { return WebString(); } 595 virtual WebString doNotTrackValue() { return WebString(); }
604 596
605 597
606 // WebGL ------------------------------------------------------ 598 // WebGL ------------------------------------------------------
607 599
608 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is 600 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is
609 // placed here instead of WebContentSettingsClient because this class is 601 // placed here instead of WebContentSettingsClient because this class is
610 // implemented in content/, and putting it here avoids adding more public 602 // implemented in content/, and putting it here avoids adding more public
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 // Mojo ---------------------------------------------------------------- 703 // Mojo ----------------------------------------------------------------
712 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 704 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
713 705
714 protected: 706 protected:
715 virtual ~WebFrameClient() { } 707 virtual ~WebFrameClient() { }
716 }; 708 };
717 709
718 } // namespace blink 710 } // namespace blink
719 711
720 #endif 712 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameTestHelpers.h ('k') | third_party/WebKit/public/web/WebRemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698