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/modules/module_registry.h" | 5 #include "gin/modules/module_registry.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "gin/arguments.h" | 11 #include "gin/arguments.h" |
12 #include "gin/converter.h" | 12 #include "gin/converter.h" |
13 #include "gin/per_isolate_data.h" | 13 #include "gin/per_isolate_data.h" |
14 #include "gin/wrapper_info.h" | 14 #include "gin/public/wrapper_info.h" |
15 | 15 |
16 using v8::Context; | 16 using v8::Context; |
17 using v8::External; | 17 using v8::External; |
18 using v8::Function; | 18 using v8::Function; |
19 using v8::FunctionTemplate; | 19 using v8::FunctionTemplate; |
20 using v8::Handle; | 20 using v8::Handle; |
21 using v8::Isolate; | 21 using v8::Isolate; |
22 using v8::Local; | 22 using v8::Local; |
23 using v8::Object; | 23 using v8::Object; |
24 using v8::ObjectTemplate; | 24 using v8::ObjectTemplate; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 for (size_t i = 0; i < pending_modules.size(); ++i) { | 222 for (size_t i = 0; i < pending_modules.size(); ++i) { |
223 scoped_ptr<PendingModule> pending(pending_modules[i]); | 223 scoped_ptr<PendingModule> pending(pending_modules[i]); |
224 pending_modules[i] = NULL; | 224 pending_modules[i] = NULL; |
225 if (AttemptToLoad(isolate, pending.Pass())) | 225 if (AttemptToLoad(isolate, pending.Pass())) |
226 keep_trying = true; | 226 keep_trying = true; |
227 } | 227 } |
228 } | 228 } |
229 } | 229 } |
230 | 230 |
231 } // namespace gin | 231 } // namespace gin |
OLD | NEW |