| Index: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.h b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.h
|
| deleted file mode 100644
|
| index 86fe14a5350284d3c98a6570a8bb719506096d90..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.h
|
| +++ /dev/null
|
| @@ -1,66 +0,0 @@
|
| -// Copyright 2014 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 SerializedScriptValueFactory_h
|
| -#define SerializedScriptValueFactory_h
|
| -
|
| -#include "bindings/core/v8/SerializedScriptValue.h"
|
| -#include "core/CoreExport.h"
|
| -#include "platform/wtf/Allocator.h"
|
| -#include "platform/wtf/Noncopyable.h"
|
| -
|
| -namespace blink {
|
| -
|
| -class CORE_EXPORT SerializedScriptValueFactory {
|
| - WTF_MAKE_NONCOPYABLE(SerializedScriptValueFactory);
|
| - USING_FAST_MALLOC(SerializedScriptValueFactory);
|
| -
|
| - public:
|
| - // SerializedScriptValueFactory::initialize() should be invoked when Blink is
|
| - // initialized, i.e. initialize() in WebKit.cpp.
|
| - static void Initialize(SerializedScriptValueFactory* new_factory) {
|
| - DCHECK(!instance_);
|
| - instance_ = new_factory;
|
| - }
|
| -
|
| - protected:
|
| - friend class SerializedScriptValue;
|
| -
|
| - // Following 2 methods are expected to be called by SerializedScriptValue.
|
| -
|
| - // If a serialization error occurs (e.g., cyclic input value) this
|
| - // function returns an empty representation, schedules a V8 exception to
|
| - // be thrown using v8::ThrowException(), and sets |didThrow|. In this case
|
| - // the caller must not invoke any V8 operations until control returns to
|
| - // V8. When serialization is successful, |didThrow| is false.
|
| - virtual PassRefPtr<SerializedScriptValue> Create(
|
| - v8::Isolate*,
|
| - v8::Local<v8::Value>,
|
| - const SerializedScriptValue::SerializeOptions&,
|
| - ExceptionState&);
|
| -
|
| - virtual v8::Local<v8::Value> Deserialize(
|
| - SerializedScriptValue*,
|
| - v8::Isolate*,
|
| - const SerializedScriptValue::DeserializeOptions&);
|
| -
|
| - // Following methods are expected to be called in
|
| - // SerializedScriptValueFactory{ForModules}.
|
| - SerializedScriptValueFactory() {}
|
| -
|
| - private:
|
| - static SerializedScriptValueFactory& Instance() {
|
| - if (!instance_) {
|
| - NOTREACHED();
|
| - instance_ = new SerializedScriptValueFactory;
|
| - }
|
| - return *instance_;
|
| - }
|
| -
|
| - static SerializedScriptValueFactory* instance_;
|
| -};
|
| -
|
| -} // namespace blink
|
| -
|
| -#endif // SerializedScriptValueFactory_h
|
|
|