| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gin/per_isolate_data.h" | 5 #include "gin/per_isolate_data.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 NamedPropertyInterceptor* PerIsolateData::GetNamedPropertyInterceptor( | 107 NamedPropertyInterceptor* PerIsolateData::GetNamedPropertyInterceptor( |
| 108 WrappableBase* base) { | 108 WrappableBase* base) { |
| 109 NamedPropertyInterceptorMap::iterator it = named_interceptors_.find(base); | 109 NamedPropertyInterceptorMap::iterator it = named_interceptors_.find(base); |
| 110 if (it != named_interceptors_.end()) | 110 if (it != named_interceptors_.end()) |
| 111 return it->second; | 111 return it->second; |
| 112 else | 112 else |
| 113 return NULL; | 113 return NULL; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void PerIsolateData::EnableIdleTasks( | 116 void PerIsolateData::EnableIdleTasks( |
| 117 scoped_ptr<V8IdleTaskRunner> idle_task_runner) { | 117 std::unique_ptr<V8IdleTaskRunner> idle_task_runner) { |
| 118 idle_task_runner_ = std::move(idle_task_runner); | 118 idle_task_runner_ = std::move(idle_task_runner); |
| 119 } | 119 } |
| 120 | 120 |
| 121 } // namespace gin | 121 } // namespace gin |
| OLD | NEW |