| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 LinkHeader_h | 5 #ifndef LinkHeader_h |
| 6 #define LinkHeader_h | 6 #define LinkHeader_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/html/CrossOriginAttribute.h" | 9 #include "core/html/CrossOriginAttribute.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class LinkHeader { | 15 class LinkHeader { |
| 16 ALLOW_ONLY_INLINE_ALLOCATION(); | 16 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 17 public: | 17 public: |
| 18 template <typename CharType> | 18 template <typename CharType> |
| 19 LinkHeader(CharType*& position, CharType* end); | 19 LinkHeader(CharType*& position, CharType* end); |
| 20 | 20 |
| 21 const String& url() const { return m_url; } | 21 const String& url() const { return m_url; } |
| 22 const String& rel() const { return m_rel; } | 22 const String& rel() const { return m_rel; } |
| 23 CrossOriginAttributeValue crossOrigin() const { return m_crossOrigin; } | 23 CrossOriginAttributeValue crossOrigin() const { return m_crossOrigin; } |
| 24 bool valid() const { return m_isValid; } | 24 bool valid() const { return m_isValid; } |
| 25 | 25 |
| 26 enum LinkParameterName { | 26 enum LinkParameterName { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 private: | 58 private: |
| 59 template <typename CharType> | 59 template <typename CharType> |
| 60 void init(CharType* headerValue, unsigned len); | 60 void init(CharType* headerValue, unsigned len); |
| 61 | 61 |
| 62 Vector<LinkHeader> m_headerSet; | 62 Vector<LinkHeader> m_headerSet; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } | 65 } |
| 66 | 66 |
| 67 #endif | 67 #endif |
| OLD | NEW |