| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 SandboxFlags getSandboxFlags() const { return m_sandboxFlags; } | 72 SandboxFlags getSandboxFlags() const { return m_sandboxFlags; } |
| 73 bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; } | 73 bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; } |
| 74 virtual void enforceSandboxFlags(SandboxFlags mask); | 74 virtual void enforceSandboxFlags(SandboxFlags mask); |
| 75 | 75 |
| 76 void setAddressSpace(WebAddressSpace space) { m_addressSpace = space; } | 76 void setAddressSpace(WebAddressSpace space) { m_addressSpace = space; } |
| 77 WebAddressSpace addressSpace() const { return m_addressSpace; } | 77 WebAddressSpace addressSpace() const { return m_addressSpace; } |
| 78 String addressSpaceForBindings() const; | 78 String addressSpaceForBindings() const; |
| 79 | 79 |
| 80 void addInsecureNavigationUpgrade(unsigned hashedHost) { | 80 void addInsecureNavigationUpgrade(unsigned hashedHost) { |
| 81 m_insecureNavigationsToUpgrade.add(hashedHost); | 81 m_insecureNavigationsToUpgrade.insert(hashedHost); |
| 82 } | 82 } |
| 83 InsecureNavigationsSet* insecureNavigationsToUpgrade() { | 83 InsecureNavigationsSet* insecureNavigationsToUpgrade() { |
| 84 return &m_insecureNavigationsToUpgrade; | 84 return &m_insecureNavigationsToUpgrade; |
| 85 } | 85 } |
| 86 | 86 |
| 87 virtual void setInsecureRequestPolicy(WebInsecureRequestPolicy policy) { | 87 virtual void setInsecureRequestPolicy(WebInsecureRequestPolicy policy) { |
| 88 m_insecureRequestPolicy = policy; | 88 m_insecureRequestPolicy = policy; |
| 89 } | 89 } |
| 90 WebInsecureRequestPolicy getInsecureRequestPolicy() const { | 90 WebInsecureRequestPolicy getInsecureRequestPolicy() const { |
| 91 return m_insecureRequestPolicy; | 91 return m_insecureRequestPolicy; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 116 SandboxFlags m_sandboxFlags; | 116 SandboxFlags m_sandboxFlags; |
| 117 | 117 |
| 118 WebAddressSpace m_addressSpace; | 118 WebAddressSpace m_addressSpace; |
| 119 WebInsecureRequestPolicy m_insecureRequestPolicy; | 119 WebInsecureRequestPolicy m_insecureRequestPolicy; |
| 120 InsecureNavigationsSet m_insecureNavigationsToUpgrade; | 120 InsecureNavigationsSet m_insecureNavigationsToUpgrade; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // SecurityContext_h | 125 #endif // SecurityContext_h |
| OLD | NEW |