| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
| 39 #include "wtf/PassRefPtr.h" | 39 #include "wtf/PassRefPtr.h" |
| 40 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
| 41 #include "wtf/text/StringHash.h" | 41 #include "wtf/text/StringHash.h" |
| 42 #include "wtf/text/WTFString.h" | 42 #include "wtf/text/WTFString.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class SecurityOrigin; | 46 class SecurityOrigin; |
| 47 class ContentSecurityPolicy; | 47 class ContentSecurityPolicy; |
| 48 class KURL; | |
| 49 | 48 |
| 50 class CORE_EXPORT SecurityContext : public GarbageCollectedMixin { | 49 class CORE_EXPORT SecurityContext : public GarbageCollectedMixin { |
| 51 WTF_MAKE_NONCOPYABLE(SecurityContext); | 50 WTF_MAKE_NONCOPYABLE(SecurityContext); |
| 52 | 51 |
| 53 public: | 52 public: |
| 54 DECLARE_VIRTUAL_TRACE(); | 53 DECLARE_VIRTUAL_TRACE(); |
| 55 | 54 |
| 56 using InsecureNavigationsSet = HashSet<unsigned, WTF::AlreadyHashed>; | 55 using InsecureNavigationsSet = HashSet<unsigned, WTF::AlreadyHashed>; |
| 57 | 56 |
| 58 SecurityOrigin* getSecurityOrigin() const { return m_securityOrigin.get(); } | 57 SecurityOrigin* getSecurityOrigin() const { return m_securityOrigin.get(); } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 SandboxFlags m_sandboxFlags; | 104 SandboxFlags m_sandboxFlags; |
| 106 | 105 |
| 107 WebAddressSpace m_addressSpace; | 106 WebAddressSpace m_addressSpace; |
| 108 WebInsecureRequestPolicy m_insecureRequestPolicy; | 107 WebInsecureRequestPolicy m_insecureRequestPolicy; |
| 109 InsecureNavigationsSet m_insecureNavigationsToUpgrade; | 108 InsecureNavigationsSet m_insecureNavigationsToUpgrade; |
| 110 }; | 109 }; |
| 111 | 110 |
| 112 } // namespace blink | 111 } // namespace blink |
| 113 | 112 |
| 114 #endif // SecurityContext_h | 113 #endif // SecurityContext_h |
| OLD | NEW |