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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 30 matching lines...) Expand all Loading... | |
41 LinkRelAttribute(); | 41 LinkRelAttribute(); |
42 explicit LinkRelAttribute(const String&); | 42 explicit LinkRelAttribute(const String&); |
43 | 43 |
44 bool isStyleSheet() const { return m_isStyleSheet; } | 44 bool isStyleSheet() const { return m_isStyleSheet; } |
45 IconType iconType() const { return m_iconType; } | 45 IconType iconType() const { return m_iconType; } |
46 bool isAlternate() const { return m_isAlternate; } | 46 bool isAlternate() const { return m_isAlternate; } |
47 bool isDNSPrefetch() const { return m_isDNSPrefetch; } | 47 bool isDNSPrefetch() const { return m_isDNSPrefetch; } |
48 bool isLinkPrefetch() const { return m_isLinkPrefetch; } | 48 bool isLinkPrefetch() const { return m_isLinkPrefetch; } |
49 bool isLinkSubresource() const { return m_isLinkSubresource; } | 49 bool isLinkSubresource() const { return m_isLinkSubresource; } |
50 bool isLinkPrerender() const { return m_isLinkPrerender; } | 50 bool isLinkPrerender() const { return m_isLinkPrerender; } |
51 bool isImport() const { return m_isImport; } | |
dglazkov
2013/05/23 18:32:00
Don't forget to add a test to core/tests/LinkRelAt
Hajime Morrita
2013/05/24 02:28:27
Oh right! Will do.
| |
51 | 52 |
52 private: | 53 private: |
53 bool m_isStyleSheet; | |
54 IconType m_iconType; | 54 IconType m_iconType; |
55 bool m_isAlternate; | 55 bool m_isStyleSheet : 1; |
56 bool m_isDNSPrefetch; | 56 bool m_isAlternate : 1; |
57 bool m_isLinkPrefetch; | 57 bool m_isDNSPrefetch : 1; |
58 bool m_isLinkSubresource; | 58 bool m_isLinkPrefetch : 1; |
59 bool m_isLinkPrerender; | 59 bool m_isLinkSubresource : 1; |
60 | 60 bool m_isLinkPrerender : 1; |
61 bool m_isImport : 1; | |
61 }; | 62 }; |
62 | 63 |
63 } | 64 } |
64 | 65 |
65 #endif | 66 #endif |
66 | 67 |
OLD | NEW |