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

Side by Side Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.h

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Fix ODR violation Created 3 years, 8 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698