Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: third_party/WebKit/Source/core/loader/LinkHeader.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.h ('k') | third_party/WebKit/Source/core/loader/LinkLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698