blob: 080a58457141716b6a2977e54d174213d0fe436f [file] [log] [blame]
// 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_STYLE_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_STYLE_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/core_export.h"
namespace blink {
class CSSStyleValue;
// This class is designed for CSS Paint such that its instance can be safely
// passed cross threads.
class CORE_EXPORT CrossThreadStyleValue {
public:
virtual ~CrossThreadStyleValue() = default;
virtual CSSStyleValue* ToCSSStyleValue() = 0;
protected:
CrossThreadStyleValue() = default;
private:
DISALLOW_COPY_AND_ASSIGN(CrossThreadStyleValue);
};
} // namespace blink
#endif