From 67d9eaa215e8727d86dc7b1f7a10be8699848f1f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 7 Aug 2015 19:21:07 +0800 Subject: [PATCH] Remove locker.h --- native_mate/locker.cc | 17 ----------------- native_mate/locker.h | 30 ------------------------------ native_mate_files.gypi | 3 --- 3 files changed, 50 deletions(-) delete mode 100644 native_mate/locker.cc delete mode 100644 native_mate/locker.h diff --git a/native_mate/locker.cc b/native_mate/locker.cc deleted file mode 100644 index c85e68e35f34..000000000000 --- a/native_mate/locker.cc +++ /dev/null @@ -1,17 +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.chromium file. - -#include "native_mate/locker.h" - -namespace mate { - -Locker::Locker(v8::Isolate* isolate) { - if (v8::Locker::IsActive()) - locker_.reset(new v8::Locker(isolate)); -} - -Locker::~Locker() { -} - -} // namespace mate diff --git a/native_mate/locker.h b/native_mate/locker.h deleted file mode 100644 index 07acfbb0be92..000000000000 --- a/native_mate/locker.h +++ /dev/null @@ -1,30 +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.chromium file. - -#ifndef NATIVE_MATE_LOCKER_H_ -#define NATIVE_MATE_LOCKER_H_ - -#include "base/memory/scoped_ptr.h" -#include "v8/include/v8.h" - -namespace mate { - -// Only lock when lockers are used in current thread. -class Locker { - public: - explicit Locker(v8::Isolate* isolate); - ~Locker(); - - private: - void* operator new(size_t size); - void operator delete(void*, size_t); - - scoped_ptr locker_; - - DISALLOW_COPY_AND_ASSIGN(Locker); -}; - -} // namespace mate - -#endif // NATIVE_MATE_LOCKER_H_ diff --git a/native_mate_files.gypi b/native_mate_files.gypi index bc245f831a6b..f3035ee9ad66 100644 --- a/native_mate_files.gypi +++ b/native_mate_files.gypi @@ -3,7 +3,6 @@ 'native_mate_files': [ 'native_mate/arguments.cc', 'native_mate/arguments.h', - 'native_mate/callback.h', 'native_mate/compat.h', 'native_mate/constructor.h', 'native_mate/converter.cc', @@ -13,8 +12,6 @@ 'native_mate/function_template.cc', 'native_mate/function_template.h', 'native_mate/handle.h', - 'native_mate/locker.cc', - 'native_mate/locker.h', 'native_mate/object_template_builder.cc', 'native_mate/object_template_builder.h', 'native_mate/persistent_dictionary.cc',