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/file_module_provider.h" | 5 #include "gin/modules/file_module_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
11 #include "gin/converter.h" | 13 #include "gin/converter.h" |
12 | 14 |
13 namespace gin { | 15 namespace gin { |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const std::string& id = *it; | 63 const std::string& id = *it; |
62 if (attempted_ids_.count(id)) | 64 if (attempted_ids_.count(id)) |
63 continue; | 65 continue; |
64 attempted_ids_.insert(id); | 66 attempted_ids_.insert(id); |
65 base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind( | 67 base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind( |
66 AttempToLoadModule, runner->GetWeakPtr(), search_paths_, id)); | 68 AttempToLoadModule, runner->GetWeakPtr(), search_paths_, id)); |
67 } | 69 } |
68 } | 70 } |
69 | 71 |
70 } // namespace gin | 72 } // namespace gin |
OLD | NEW |