Remove locker.h

This commit is contained in:
Cheng Zhao 2015-08-07 19:21:07 +08:00
parent ebcf4c0224
commit 67d9eaa215
3 changed files with 0 additions and 50 deletions

View file

@ -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

View file

@ -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<v8::Locker> locker_;
DISALLOW_COPY_AND_ASSIGN(Locker);
};
} // namespace mate
#endif // NATIVE_MATE_LOCKER_H_

View file

@ -3,7 +3,6 @@
'native_mate_files': [ 'native_mate_files': [
'native_mate/arguments.cc', 'native_mate/arguments.cc',
'native_mate/arguments.h', 'native_mate/arguments.h',
'native_mate/callback.h',
'native_mate/compat.h', 'native_mate/compat.h',
'native_mate/constructor.h', 'native_mate/constructor.h',
'native_mate/converter.cc', 'native_mate/converter.cc',
@ -13,8 +12,6 @@
'native_mate/function_template.cc', 'native_mate/function_template.cc',
'native_mate/function_template.h', 'native_mate/function_template.h',
'native_mate/handle.h', 'native_mate/handle.h',
'native_mate/locker.cc',
'native_mate/locker.h',
'native_mate/object_template_builder.cc', 'native_mate/object_template_builder.cc',
'native_mate/object_template_builder.h', 'native_mate/object_template_builder.h',
'native_mate/persistent_dictionary.cc', 'native_mate/persistent_dictionary.cc',