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

Side by Side Diff: third_party/WebKit/Source/core/dom/RemoteSecurityContext.h

Issue 2190183002: Forward CSP violation reporting from RenderFrameProxy to RenderFrameImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sanitize report endpoints from IPC against actual CSP contents. 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RemoteSecurityContext_h 5 #ifndef RemoteSecurityContext_h
6 #define RemoteSecurityContext_h 6 #define RemoteSecurityContext_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/SecurityContext.h" 9 #include "core/dom/SecurityContext.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class RemoteFrameClient;
15
14 class CORE_EXPORT RemoteSecurityContext : public GarbageCollectedFinalized<Remot eSecurityContext>, public SecurityContext { 16 class CORE_EXPORT RemoteSecurityContext : public GarbageCollectedFinalized<Remot eSecurityContext>, public SecurityContext {
15 USING_GARBAGE_COLLECTED_MIXIN(RemoteSecurityContext); 17 USING_GARBAGE_COLLECTED_MIXIN(RemoteSecurityContext);
16 public: 18 public:
17 DECLARE_VIRTUAL_TRACE(); 19 DECLARE_VIRTUAL_TRACE();
18 20
19 static RemoteSecurityContext* create(); 21 static RemoteSecurityContext* create(RemoteFrameClient*);
20 void setReplicatedOrigin(PassRefPtr<SecurityOrigin>); 22 void setReplicatedOrigin(PassRefPtr<SecurityOrigin>);
21 void resetReplicatedContentSecurityPolicy(); 23 void resetReplicatedContentSecurityPolicy();
22 24
23 // FIXME: implement 25 // FIXME: implement
24 void didUpdateSecurityOrigin() override { } 26 void didUpdateSecurityOrigin() override { }
25 27
26 private: 28 private:
27 RemoteSecurityContext(); 29 explicit RemoteSecurityContext(RemoteFrameClient*);
30
31 Member<RemoteFrameClient> m_remoteFrameClient;
28 }; 32 };
29 33
30 } // namespace blink 34 } // namespace blink
31 35
32 #endif // RemoteSecurityContext_h 36 #endif // RemoteSecurityContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/RemoteSecurityContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698