| Index: third_party/WebKit/Source/platform/bindings/V8PerContextData.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h b/third_party/WebKit/Source/platform/bindings/V8PerContextData.h
|
| similarity index 89%
|
| copy from third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
|
| copy to third_party/WebKit/Source/platform/bindings/V8PerContextData.h
|
| index 8c3a550b3c16f45c893241f5ab777ceb6402295a..c296c08c7087145907fd9c32f6ccfa26a290475f 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
|
| +++ b/third_party/WebKit/Source/platform/bindings/V8PerContextData.h
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| + * Copyright (C) 2017 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -33,13 +33,13 @@
|
|
|
| #include <memory>
|
|
|
| -#include "bindings/core/v8/ScopedPersistent.h"
|
| -#include "bindings/core/v8/V0CustomElementBinding.h"
|
| -#include "bindings/core/v8/V8GlobalValueMap.h"
|
| -#include "bindings/core/v8/WrapperTypeInfo.h"
|
| -#include "core/CoreExport.h"
|
| #include "gin/public/context_holder.h"
|
| #include "gin/public/gin_embedders.h"
|
| +#include "platform/PlatformExport.h"
|
| +#include "platform/bindings/ScopedPersistent.h"
|
| +#include "platform/bindings/V0CustomElementBinding.h"
|
| +#include "platform/bindings/V8GlobalValueMap.h"
|
| +#include "platform/bindings/WrapperTypeInfo.h"
|
| #include "platform/wtf/Allocator.h"
|
| #include "platform/wtf/HashMap.h"
|
| #include "platform/wtf/Vector.h"
|
| @@ -53,11 +53,12 @@ class V8DOMActivityLogger;
|
| class V8PerContextData;
|
|
|
| enum V8ContextEmbedderDataField {
|
| - kV8ContextPerContextDataIndex =
|
| - static_cast<int>(gin::kPerContextDataStartIndex + gin::kEmbedderBlink),
|
| + kV8ContextPerContextDataIndex = static_cast<int>(
|
| + gin::kPerContextDataStartIndex + // NOLINT(readability/enum_casing)
|
| + gin::kEmbedderBlink), // NOLINT(readability/enum_casing)
|
| };
|
|
|
| -class CORE_EXPORT V8PerContextData final {
|
| +class PLATFORM_EXPORT V8PerContextData final {
|
| USING_FAST_MALLOC(V8PerContextData);
|
| WTF_MAKE_NONCOPYABLE(V8PerContextData);
|
|
|
| @@ -106,7 +107,7 @@ class CORE_EXPORT V8PerContextData final {
|
| // Garbage collected classes that use V8PerContextData to hold an instance
|
| // should subclass Data, and use addData / clearData / getData to manage the
|
| // instance.
|
| - class CORE_EXPORT Data : public GarbageCollectedMixin {};
|
| + class PLATFORM_EXPORT Data : public GarbageCollectedMixin {};
|
|
|
| void AddData(const char* key, Data*);
|
| void ClearData(const char* key);
|
|
|