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/public/isolate_holder.h" | 5 #include "gin/public/isolate_holder.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdlib.h> | 8 #include <stdlib.h> |
8 #include <string.h> | 9 #include <string.h> |
9 | 10 |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
12 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
13 #include "gin/debug_impl.h" | 14 #include "gin/debug_impl.h" |
14 #include "gin/function_template.h" | 15 #include "gin/function_template.h" |
15 #include "gin/per_isolate_data.h" | 16 #include "gin/per_isolate_data.h" |
16 #include "gin/run_microtasks_observer.h" | 17 #include "gin/run_microtasks_observer.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 task_observer_.reset(); | 94 task_observer_.reset(); |
94 } | 95 } |
95 | 96 |
96 void IsolateHolder::EnableIdleTasks( | 97 void IsolateHolder::EnableIdleTasks( |
97 scoped_ptr<V8IdleTaskRunner> idle_task_runner) { | 98 scoped_ptr<V8IdleTaskRunner> idle_task_runner) { |
98 DCHECK(isolate_data_.get()); | 99 DCHECK(isolate_data_.get()); |
99 isolate_data_->EnableIdleTasks(idle_task_runner.Pass()); | 100 isolate_data_->EnableIdleTasks(idle_task_runner.Pass()); |
100 } | 101 } |
101 | 102 |
102 } // namespace gin | 103 } // namespace gin |
OLD | NEW |