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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2190183002: Forward CSP violation reporting from RenderFrameProxy to RenderFrameImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove no longer applicable TODO and early exit from reportViolation method. Created 4 years, 4 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 int findMatchMarkersVersion() const override; 237 int findMatchMarkersVersion() const override;
238 WebFloatRect activeFindMatchRect() override; 238 WebFloatRect activeFindMatchRect() override;
239 void findMatchRects(WebVector<WebFloatRect>&) override; 239 void findMatchRects(WebVector<WebFloatRect>&) override;
240 int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionRect) ove rride; 240 int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionRect) ove rride;
241 float distanceToNearestFindMatch(const WebFloatPoint&) override; 241 float distanceToNearestFindMatch(const WebFloatPoint&) override;
242 void setTickmarks(const WebVector<WebRect>&) override; 242 void setTickmarks(const WebVector<WebRect>&) override;
243 WebFrameWidgetBase* frameWidget() const override; 243 WebFrameWidgetBase* frameWidget() const override;
244 void copyImageAt(const WebPoint&) override; 244 void copyImageAt(const WebPoint&) override;
245 void saveImageAt(const WebPoint&) override; 245 void saveImageAt(const WebPoint&) override;
246 void clearActiveFindMatch() override; 246 void clearActiveFindMatch() override;
247 void reportContentSecurityPolicyViolation(
248 const WebString& directiveText,
249 const WebString& effectiveDirective,
250 const WebString& consoleMessage,
251 const WebURL& blockedURL,
252 const WebVector<WebString>& reportEndpoints,
253 const WebString& header,
254 WebContentSecurityPolicyViolationType,
255 bool followedRedirect) override;
247 256
248 // WebFrameImplBase methods: 257 // WebFrameImplBase methods:
249 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name, const AtomicString& uniqueName) override; 258 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name, const AtomicString& uniqueName) override;
250 LocalFrame* frame() const override { return m_frame.get(); } 259 LocalFrame* frame() const override { return m_frame.get(); }
251 260
252 void willBeDetached(); 261 void willBeDetached();
253 void willDetachParent(); 262 void willDetachParent();
254 263
255 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame * opener); 264 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame * opener);
256 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame* , WebSandboxFlags); 265 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame* , WebSandboxFlags);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Accomplish that by keeping a self-referential Persistent<>. It is 405 // Accomplish that by keeping a self-referential Persistent<>. It is
397 // cleared upon close(). 406 // cleared upon close().
398 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 407 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
399 }; 408 };
400 409
401 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 410 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
402 411
403 } // namespace blink 412 } // namespace blink
404 413
405 #endif 414 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698