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

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

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Addressed comments @alexmos. Created 3 years, 9 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 class WebInputMethodControllerImpl; 66 class WebInputMethodControllerImpl;
67 class WebNode; 67 class WebNode;
68 class WebPerformance; 68 class WebPerformance;
69 class WebPlugin; 69 class WebPlugin;
70 class WebPluginContainerImpl; 70 class WebPluginContainerImpl;
71 class WebScriptExecutionCallback; 71 class WebScriptExecutionCallback;
72 class WebView; 72 class WebView;
73 class WebViewImpl; 73 class WebViewImpl;
74 enum class WebFrameLoadType; 74 enum class WebFrameLoadType;
75 struct FrameLoadRequest; 75 struct FrameLoadRequest;
76 struct WebContentSecurityPolicyViolation;
76 struct WebPrintParams; 77 struct WebPrintParams;
77 78
78 template <typename T> 79 template <typename T>
79 class WebVector; 80 class WebVector;
80 81
81 // Implementation of WebFrame, note that this is a reference counted object. 82 // Implementation of WebFrame, note that this is a reference counted object.
82 class WEB_EXPORT WebLocalFrameImpl final 83 class WEB_EXPORT WebLocalFrameImpl final
83 : public WebFrameImplBase, 84 : public WebFrameImplBase,
84 NON_EXPORTED_BASE(public WebLocalFrame) { 85 NON_EXPORTED_BASE(public WebLocalFrame) {
85 public: 86 public:
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 const WebString& mimeType, 254 const WebString& mimeType,
254 const WebString& textEncoding, 255 const WebString& textEncoding,
255 const WebURL& baseURL, 256 const WebURL& baseURL,
256 const WebURL& unreachableURL, 257 const WebURL& unreachableURL,
257 bool replace, 258 bool replace,
258 WebFrameLoadType, 259 WebFrameLoadType,
259 const WebHistoryItem&, 260 const WebHistoryItem&,
260 WebHistoryLoadType, 261 WebHistoryLoadType,
261 bool isClientRedirect) override; 262 bool isClientRedirect) override;
262 bool maybeRenderFallbackContent(const WebURLError&) const override; 263 bool maybeRenderFallbackContent(const WebURLError&) const override;
264 void reportContentSecurityPolicyViolation(
265 const blink::WebContentSecurityPolicyViolation&) override;
263 bool isLoading() const override; 266 bool isLoading() const override;
264 bool isNavigationScheduledWithin(double interval) const override; 267 bool isNavigationScheduledWithin(double interval) const override;
265 void setCommittedFirstRealLoad() override; 268 void setCommittedFirstRealLoad() override;
266 void setHasReceivedUserGesture() override; 269 void setHasReceivedUserGesture() override;
267 void blinkFeatureUsageReport(const std::set<int>& features) override; 270 void blinkFeatureUsageReport(const std::set<int>& features) override;
268 void mixedContentFound(const WebURL& mainResourceUrl, 271 void mixedContentFound(const WebURL& mainResourceUrl,
269 const WebURL& mixedContentUrl, 272 const WebURL& mixedContentUrl,
270 WebURLRequest::RequestContext, 273 WebURLRequest::RequestContext,
271 bool wasAllowed, 274 bool wasAllowed,
272 bool hadRedirect) override; 275 bool hadRedirect) override;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 504
502 DEFINE_TYPE_CASTS(WebLocalFrameImpl, 505 DEFINE_TYPE_CASTS(WebLocalFrameImpl,
503 WebFrame, 506 WebFrame,
504 frame, 507 frame,
505 frame->isWebLocalFrame(), 508 frame->isWebLocalFrame(),
506 frame.isWebLocalFrame()); 509 frame.isWebLocalFrame());
507 510
508 } // namespace blink 511 } // namespace blink
509 512
510 #endif 513 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698