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

Side by Side Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa d remote frames. Tests that load 192 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa d remote frames. Tests that load
193 // frames and need further specialization of WebFrameClient behavior should subc lass this. 193 // frames and need further specialization of WebFrameClient behavior should subc lass this.
194 class TestWebRemoteFrameClient : public WebRemoteFrameClient { 194 class TestWebRemoteFrameClient : public WebRemoteFrameClient {
195 public: 195 public:
196 TestWebRemoteFrameClient(); 196 TestWebRemoteFrameClient();
197 197
198 WebRemoteFrameImpl* frame() const { return m_frame; } 198 WebRemoteFrameImpl* frame() const { return m_frame; }
199 199
200 // WebRemoteFrameClient overrides: 200 // WebRemoteFrameClient overrides:
201 void frameDetached(DetachType) override; 201 void frameDetached(DetachType) override;
202 void postMessageEvent( 202 void forwardPostMessage(
203 WebLocalFrame* sourceFrame, 203 WebLocalFrame* sourceFrame,
204 WebRemoteFrame* targetFrame, 204 WebRemoteFrame* targetFrame,
205 WebSecurityOrigin targetOrigin, 205 WebSecurityOrigin targetOrigin,
206 WebDOMMessageEvent) override { } 206 WebDOMMessageEvent) override { }
207 207
208 private: 208 private:
209 Persistent<WebRemoteFrameImpl> const m_frame; 209 Persistent<WebRemoteFrameImpl> const m_frame;
210 }; 210 };
211 211
212 } // namespace FrameTestHelpers 212 } // namespace FrameTestHelpers
213 } // namespace blink 213 } // namespace blink
214 214
215 #endif // FrameTestHelpers_h 215 #endif // FrameTestHelpers_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698