| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 class HTMLLinkElement; | 40 class HTMLLinkElement; |
| 41 | 41 |
| 42 class LinkResource { | 42 class LinkResource { |
| 43 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED; | 43 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED; |
| 44 public: | 44 public: |
| 45 enum Type { | 45 enum Type { |
| 46 Style, | 46 Style, |
| 47 Import | 47 Import, |
| 48 Manifest |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 explicit LinkResource(HTMLLinkElement*); | 51 explicit LinkResource(HTMLLinkElement*); |
| 51 virtual ~LinkResource(); | 52 virtual ~LinkResource(); |
| 52 | 53 |
| 53 bool shouldLoadResource() const; | 54 bool shouldLoadResource() const; |
| 54 LocalFrame* loadingFrame() const; | 55 LocalFrame* loadingFrame() const; |
| 55 | 56 |
| 56 virtual Type type() const = 0; | 57 virtual Type type() const = 0; |
| 57 virtual void process() = 0; | 58 virtual void process() = 0; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 HTMLLinkElement* m_owner; | 76 HTMLLinkElement* m_owner; |
| 76 KURL m_url; | 77 KURL m_url; |
| 77 AtomicString m_charset; | 78 AtomicString m_charset; |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace WebCore | 81 } // namespace WebCore |
| 81 | 82 |
| 82 #endif // LinkResource_h | 83 #endif // LinkResource_h |
| OLD | NEW |