OLD | NEW |
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 CORE_EXPORT RemoteSecurityContext : public GarbageCollectedFinalized<Remot
eSecurityContext>, public SecurityContext { | 14 class CORE_EXPORT RemoteSecurityContext : public GarbageCollectedFinalized<Remot
eSecurityContext>, public SecurityContext { |
15 USING_GARBAGE_COLLECTED_MIXIN(RemoteSecurityContext); | 15 USING_GARBAGE_COLLECTED_MIXIN(RemoteSecurityContext); |
16 public: | 16 public: |
17 DECLARE_VIRTUAL_TRACE(); | 17 DECLARE_VIRTUAL_TRACE(); |
18 | 18 |
19 static RemoteSecurityContext* create(); | 19 static RemoteSecurityContext* create(); |
20 void setReplicatedOrigin(PassRefPtr<SecurityOrigin>); | 20 void setReplicatedOrigin(PassRefPtr<SecurityOrigin>); |
| 21 void resetReplicatedContentSecurityPolicy(); |
21 | 22 |
22 // FIXME: implement | 23 // FIXME: implement |
23 void didUpdateSecurityOrigin() override { } | 24 void didUpdateSecurityOrigin() override { } |
24 | 25 |
25 private: | 26 private: |
26 RemoteSecurityContext(); | 27 RemoteSecurityContext(); |
27 }; | 28 }; |
28 | 29 |
29 } // namespace blink | 30 } // namespace blink |
30 | 31 |
31 #endif // RemoteSecurityContext_h | 32 #endif // RemoteSecurityContext_h |
OLD | NEW |