| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CSSResourceValue_h | 5 #ifndef CSSResourceValue_h |
| 6 #define CSSResourceValue_h | 6 #define CSSResourceValue_h |
| 7 | 7 |
| 8 #include "core/css/cssom/CSSStyleValue.h" | 8 #include "core/css/cssom/CSSStyleValue.h" |
| 9 | 9 |
| 10 #include "core/fetch/Resource.h" | 10 #include "core/fetch/Resource.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 namespace cssom { |
| 13 | 14 |
| 14 class CORE_EXPORT CSSResourceValue : public CSSStyleValue { | 15 class CORE_EXPORT CSSResourceValue : public CSSStyleValue { |
| 15 WTF_MAKE_NONCOPYABLE(CSSResourceValue); | 16 WTF_MAKE_NONCOPYABLE(CSSResourceValue); |
| 16 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 17 public: | 18 public: |
| 18 virtual ~CSSResourceValue() { } | 19 virtual ~CSSResourceValue() { } |
| 19 | 20 |
| 20 StyleValueType type() const override { return ResourceType; } | 21 StyleValueType type() const override { return ResourceType; } |
| 21 | 22 |
| 22 const String state() const | 23 const String state() const |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 { | 42 { |
| 42 CSSStyleValue::trace(visitor); | 43 CSSStyleValue::trace(visitor); |
| 43 } | 44 } |
| 44 | 45 |
| 45 protected: | 46 protected: |
| 46 CSSResourceValue() { } | 47 CSSResourceValue() { } |
| 47 | 48 |
| 48 virtual Resource::Status status() const = 0; | 49 virtual Resource::Status status() const = 0; |
| 49 }; | 50 }; |
| 50 | 51 |
| 52 } // namespace cssom |
| 51 } // namespace blink | 53 } // namespace blink |
| 52 | 54 |
| 55 |
| 53 #endif // CSSResourceValue_h | 56 #endif // CSSResourceValue_h |
| OLD | NEW |