Chromium Code Reviews| 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 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 RemoteSecurityContext(RemoteFrameClient*); |
|
alexmos
2016/08/09 18:01:20
nit: explicit
Łukasz Anforowicz
2016/08/09 22:23:20
Done.
| |
| 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 |
| OLD | NEW |