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 #include "platform/weborigin/Suborigin.h" | 5 #include "platform/weborigin/Suborigin.h" |
6 | 6 |
7 #include "wtf/ASCIICType.h" | 7 #include "platform/wtf/ASCIICType.h" |
8 #include "wtf/text/ParsingUtilities.h" | 8 #include "platform/wtf/text/ParsingUtilities.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 static unsigned emptyPolicy = | 12 static unsigned emptyPolicy = |
13 static_cast<unsigned>(Suborigin::SuboriginPolicyOptions::None); | 13 static_cast<unsigned>(Suborigin::SuboriginPolicyOptions::None); |
14 | 14 |
15 Suborigin::Suborigin() : m_optionsMask(emptyPolicy) {} | 15 Suborigin::Suborigin() : m_optionsMask(emptyPolicy) {} |
16 | 16 |
17 Suborigin::Suborigin(const Suborigin* other) | 17 Suborigin::Suborigin(const Suborigin* other) |
18 : m_name(other->m_name.isolatedCopy()), | 18 : m_name(other->m_name.isolatedCopy()), |
(...skipping 11 matching lines...) Expand all Loading... |
30 bool Suborigin::policyContains(SuboriginPolicyOptions option) const { | 30 bool Suborigin::policyContains(SuboriginPolicyOptions option) const { |
31 return m_optionsMask & static_cast<unsigned>(option); | 31 return m_optionsMask & static_cast<unsigned>(option); |
32 } | 32 } |
33 | 33 |
34 void Suborigin::clear() { | 34 void Suborigin::clear() { |
35 m_name = String(); | 35 m_name = String(); |
36 m_optionsMask = emptyPolicy; | 36 m_optionsMask = emptyPolicy; |
37 } | 37 } |
38 | 38 |
39 } // namespace blink | 39 } // namespace blink |
OLD | NEW |