OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 Suborigin_h | 5 #ifndef Suborigin_h |
6 #define Suborigin_h | 6 #define Suborigin_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "wtf/Noncopyable.h" | 9 #include "platform/wtf/Noncopyable.h" |
10 #include "wtf/text/WTFString.h" | 10 #include "platform/wtf/text/WTFString.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class PLATFORM_EXPORT Suborigin { | 14 class PLATFORM_EXPORT Suborigin { |
15 public: | 15 public: |
16 enum class SuboriginPolicyOptions : unsigned { | 16 enum class SuboriginPolicyOptions : unsigned { |
17 None = 0, | 17 None = 0, |
18 UnsafePostMessageSend = 1 << 0, | 18 UnsafePostMessageSend = 1 << 0, |
19 UnsafePostMessageReceive = 1 << 1, | 19 UnsafePostMessageReceive = 1 << 1, |
20 UnsafeCookies = 1 << 2, | 20 UnsafeCookies = 1 << 2, |
(...skipping 13 matching lines...) Expand all Loading... |
34 unsigned optionsMask() const { return m_optionsMask; } | 34 unsigned optionsMask() const { return m_optionsMask; } |
35 | 35 |
36 private: | 36 private: |
37 String m_name; | 37 String m_name; |
38 unsigned m_optionsMask; | 38 unsigned m_optionsMask; |
39 }; | 39 }; |
40 | 40 |
41 } // namespace blink | 41 } // namespace blink |
42 | 42 |
43 #endif // Suborigin_h | 43 #endif // Suborigin_h |
OLD | NEW |