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 "content/renderer/mojo_context_state.h" | 5 #include "content/renderer/mojo_context_state.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
9 #include "content/public/renderer/render_frame.h" | 11 #include "content/public/renderer/render_frame.h" |
10 #include "content/public/renderer/resource_fetcher.h" | 12 #include "content/public/renderer/resource_fetcher.h" |
11 #include "content/renderer/mojo_main_runner.h" | 13 #include "content/renderer/mojo_main_runner.h" |
12 #include "gin/converter.h" | 14 #include "gin/converter.h" |
13 #include "gin/modules/module_registry.h" | 15 #include "gin/modules/module_registry.h" |
14 #include "gin/per_context_data.h" | 16 #include "gin/per_context_data.h" |
15 #include "gin/public/context_holder.h" | 17 #include "gin/public/context_holder.h" |
16 #include "gin/try_catch.h" | 18 #include "gin/try_catch.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 const std::vector<std::string>& dependencies) { | 128 const std::vector<std::string>& dependencies) { |
127 FetchModules(dependencies); | 129 FetchModules(dependencies); |
128 | 130 |
129 gin::ContextHolder* context_holder = runner_->GetContextHolder(); | 131 gin::ContextHolder* context_holder = runner_->GetContextHolder(); |
130 gin::ModuleRegistry* registry = gin::ModuleRegistry::From( | 132 gin::ModuleRegistry* registry = gin::ModuleRegistry::From( |
131 context_holder->context()); | 133 context_holder->context()); |
132 registry->AttemptToLoadMoreModules(context_holder->isolate()); | 134 registry->AttemptToLoadMoreModules(context_holder->isolate()); |
133 } | 135 } |
134 | 136 |
135 } // namespace content | 137 } // namespace content |
OLD | NEW |