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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 class TestWebFrameClient : public WebFrameClient { 251 class TestWebFrameClient : public WebFrameClient {
252 public: 252 public:
253 TestWebFrameClient(); 253 TestWebFrameClient();
254 254
255 void FrameDetached(WebLocalFrame*, DetachType) override; 255 void FrameDetached(WebLocalFrame*, DetachType) override;
256 WebLocalFrame* CreateChildFrame(WebLocalFrame* parent, 256 WebLocalFrame* CreateChildFrame(WebLocalFrame* parent,
257 WebTreeScopeType, 257 WebTreeScopeType,
258 const WebString& name, 258 const WebString& name,
259 const WebString& fallback_name, 259 const WebString& fallback_name,
260 WebSandboxFlags, 260 WebSandboxFlags,
261 const WebParsedFeaturePolicy&,
261 const WebFrameOwnerProperties&) override; 262 const WebFrameOwnerProperties&) override;
262 void DidStartLoading(bool) override; 263 void DidStartLoading(bool) override;
263 void DidStopLoading() override; 264 void DidStopLoading() override;
264 265
265 bool IsLoading() { return loads_in_progress_ > 0; } 266 bool IsLoading() { return loads_in_progress_ > 0; }
266 267
267 // Tests can override the virtual method below to mock the interface provider. 268 // Tests can override the virtual method below to mock the interface provider.
268 virtual blink::InterfaceProvider* GetInterfaceProvider() { return nullptr; } 269 virtual blink::InterfaceProvider* GetInterfaceProvider() { return nullptr; }
269 270
270 private: 271 private:
(...skipping 17 matching lines...) Expand all
288 WebDOMMessageEvent) override {} 289 WebDOMMessageEvent) override {}
289 290
290 private: 291 private:
291 Persistent<WebRemoteFrameImpl> const frame_; 292 Persistent<WebRemoteFrameImpl> const frame_;
292 }; 293 };
293 294
294 } // namespace FrameTestHelpers 295 } // namespace FrameTestHelpers
295 } // namespace blink 296 } // namespace blink
296 297
297 #endif // FrameTestHelpers_h 298 #endif // FrameTestHelpers_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698