diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/cssom/cross_thread_unsupported_value.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/css/cssom/cross_thread_unsupported_value.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/cssom/cross_thread_unsupported_value.h b/chromium/third_party/blink/renderer/core/css/cssom/cross_thread_unsupported_value.h new file mode 100644 index 00000000000..3a3be4bc817 --- /dev/null +++ b/chromium/third_party/blink/renderer/core/css/cssom/cross_thread_unsupported_value.h @@ -0,0 +1,35 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNSUPPORTED_VALUE_H_ +#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNSUPPORTED_VALUE_H_ + +#include "base/macros.h" +#include "third_party/blink/renderer/core/core_export.h" +#include "third_party/blink/renderer/core/css/css_value.h" +#include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h" +#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" + +namespace blink { + +class CSSStyleValue; + +class CORE_EXPORT CrossThreadUnsupportedValue final + : public CrossThreadStyleValue { + public: + explicit CrossThreadUnsupportedValue(const String& value) : value_(value) {} + ~CrossThreadUnsupportedValue() override = default; + + CSSStyleValue* ToCSSStyleValue() override; + + private: + friend class CrossThreadStyleValueTest; + + String value_; + DISALLOW_COPY_AND_ASSIGN(CrossThreadUnsupportedValue); +}; + +} // namespace blink + +#endif |