OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/test/file.h" | 5 #include "gin/test/file.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_util.h" | |
11 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "gin/arguments.h" | 14 #include "gin/arguments.h" |
15 #include "gin/converter.h" | 15 #include "gin/converter.h" |
16 #include "gin/object_template_builder.h" | 16 #include "gin/object_template_builder.h" |
17 #include "gin/per_isolate_data.h" | 17 #include "gin/per_isolate_data.h" |
18 #include "gin/public/wrapper_info.h" | 18 #include "gin/public/wrapper_info.h" |
19 | 19 |
20 using v8::ObjectTemplate; | 20 using v8::ObjectTemplate; |
21 | 21 |
22 namespace gin { | 22 namespace gin { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 .SetMethod("readFileToString", ReadFileToString) | 77 .SetMethod("readFileToString", ReadFileToString) |
78 .SetMethod("getFilesInDirectory", GetFilesInDirectory) | 78 .SetMethod("getFilesInDirectory", GetFilesInDirectory) |
79 .SetMethod("getSourceRootDirectory", GetSourceRootDirectory) | 79 .SetMethod("getSourceRootDirectory", GetSourceRootDirectory) |
80 .Build(); | 80 .Build(); |
81 data->SetObjectTemplate(&g_wrapper_info, templ); | 81 data->SetObjectTemplate(&g_wrapper_info, templ); |
82 } | 82 } |
83 return templ->NewInstance(); | 83 return templ->NewInstance(); |
84 } | 84 } |
85 | 85 |
86 } // namespace gin | 86 } // namespace gin |
OLD | NEW |