OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class HTMLLinkElement; | 41 class HTMLLinkElement; |
42 | 42 |
43 class LinkResource : public NoBaseWillBeGarbageCollectedFinalized<LinkResource>
{ | 43 class LinkResource : public NoBaseWillBeGarbageCollectedFinalized<LinkResource>
{ |
44 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 44 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
45 public: | 45 public: |
46 enum Type { | 46 enum Type { |
47 Style, | 47 Style, |
48 Import | 48 Import, |
| 49 Manifest |
49 }; | 50 }; |
50 | 51 |
51 explicit LinkResource(HTMLLinkElement*); | 52 explicit LinkResource(HTMLLinkElement*); |
52 virtual ~LinkResource(); | 53 virtual ~LinkResource(); |
53 | 54 |
54 bool shouldLoadResource() const; | 55 bool shouldLoadResource() const; |
55 LocalFrame* loadingFrame() const; | 56 LocalFrame* loadingFrame() const; |
56 | 57 |
57 virtual Type type() const = 0; | 58 virtual Type type() const = 0; |
58 virtual void process() = 0; | 59 virtual void process() = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
76 | 77 |
77 private: | 78 private: |
78 HTMLLinkElement* m_owner; | 79 HTMLLinkElement* m_owner; |
79 KURL m_url; | 80 KURL m_url; |
80 AtomicString m_charset; | 81 AtomicString m_charset; |
81 }; | 82 }; |
82 | 83 |
83 } // namespace WebCore | 84 } // namespace WebCore |
84 | 85 |
85 #endif // LinkResource_h | 86 #endif // LinkResource_h |
OLD | NEW |