OLD | NEW |
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 class TestWebFrameClient : public WebFrameClient { | 250 class TestWebFrameClient : public WebFrameClient { |
251 public: | 251 public: |
252 TestWebFrameClient(); | 252 TestWebFrameClient(); |
253 | 253 |
254 void frameDetached(WebLocalFrame*, DetachType) override; | 254 void frameDetached(WebLocalFrame*, DetachType) override; |
255 WebLocalFrame* createChildFrame(WebLocalFrame* parent, | 255 WebLocalFrame* createChildFrame(WebLocalFrame* parent, |
256 WebTreeScopeType, | 256 WebTreeScopeType, |
257 const WebString& name, | 257 const WebString& name, |
258 const WebString& fallbackName, | 258 const WebString& fallbackName, |
259 WebSandboxFlags, | 259 WebSandboxFlags, |
| 260 const WebParsedFeaturePolicy&, |
260 const WebFrameOwnerProperties&) override; | 261 const WebFrameOwnerProperties&) override; |
261 void didStartLoading(bool) override; | 262 void didStartLoading(bool) override; |
262 void didStopLoading() override; | 263 void didStopLoading() override; |
263 | 264 |
264 bool isLoading() { return m_loadsInProgress > 0; } | 265 bool isLoading() { return m_loadsInProgress > 0; } |
265 | 266 |
266 // Tests can override the virtual method below to mock the interface provider. | 267 // Tests can override the virtual method below to mock the interface provider. |
267 virtual blink::InterfaceProvider* interfaceProvider() { return nullptr; } | 268 virtual blink::InterfaceProvider* interfaceProvider() { return nullptr; } |
268 | 269 |
269 private: | 270 private: |
(...skipping 17 matching lines...) Expand all Loading... |
287 WebDOMMessageEvent) override {} | 288 WebDOMMessageEvent) override {} |
288 | 289 |
289 private: | 290 private: |
290 Persistent<WebRemoteFrameImpl> const m_frame; | 291 Persistent<WebRemoteFrameImpl> const m_frame; |
291 }; | 292 }; |
292 | 293 |
293 } // namespace FrameTestHelpers | 294 } // namespace FrameTestHelpers |
294 } // namespace blink | 295 } // namespace blink |
295 | 296 |
296 #endif // FrameTestHelpers_h | 297 #endif // FrameTestHelpers_h |
OLD | NEW |