Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: content/renderer/mojo_context_state.cc

Issue 2744963002: Introduce InterfaceEndpointClient(IEC), InterfaceEndpointHandle and (Closed)
Patch Set: Throw the error with the string being the stack trace needed to debug layouts which don't output an… Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/content_resources.grd ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } kBuiltinModuleResources[] = { 64 } kBuiltinModuleResources[] = {
65 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS}, 65 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS},
66 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS}, 66 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS},
67 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS}, 67 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS},
68 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, 68 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS},
69 {mojo::kControlMessageHandlerModuleName, 69 {mojo::kControlMessageHandlerModuleName,
70 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS}, 70 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS},
71 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS}, 71 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS},
72 {mojo::kInterfaceControlMessagesMojom, 72 {mojo::kInterfaceControlMessagesMojom,
73 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS}, 73 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS},
74 {mojo::kInterfaceEndpointClientModuleName,
75 IDR_MOJO_INTERFACE_ENDPOINT_CLIENT_JS},
76 {mojo::kInterfaceEndpointHandleModuleName,
77 IDR_MOJO_INTERFACE_ENDPOINT_HANDLE_JS},
74 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS}, 78 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS},
79 {mojo::kPipeControlMessageHandlerModuleName,
80 IDR_MOJO_PIPE_CONTROL_MESSAGE_HANDLER_JS},
81 {mojo::kPipeControlMessageProxyModuleName,
82 IDR_MOJO_PIPE_CONTROL_MESSAGE_PROXY_JS},
83 {mojo::kPipeControlMessagesMojom,
84 IDR_MOJO_PIPE_CONTROL_MESSAGES_MOJOM_JS},
75 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS}, 85 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS},
76 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS}, 86 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS},
77 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS}, 87 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS},
78 }; 88 };
79 89
80 std::unique_ptr<ModuleSourceMap>& module_sources = g_module_sources.Get(); 90 std::unique_ptr<ModuleSourceMap>& module_sources = g_module_sources.Get();
81 if (!module_sources) { 91 if (!module_sources) {
82 // Initialize the module source map on first access. 92 // Initialize the module source map on first access.
83 module_sources.reset(new ModuleSourceMap); 93 module_sources.reset(new ModuleSourceMap);
84 for (size_t i = 0; i < arraysize(kBuiltinModuleResources); ++i) { 94 for (size_t i = 0; i < arraysize(kBuiltinModuleResources); ++i) {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 const std::vector<std::string>& dependencies) { 233 const std::vector<std::string>& dependencies) {
224 FetchModules(dependencies); 234 FetchModules(dependencies);
225 235
226 gin::ContextHolder* context_holder = runner_->GetContextHolder(); 236 gin::ContextHolder* context_holder = runner_->GetContextHolder();
227 gin::ModuleRegistry* registry = gin::ModuleRegistry::From( 237 gin::ModuleRegistry* registry = gin::ModuleRegistry::From(
228 context_holder->context()); 238 context_holder->context());
229 registry->AttemptToLoadMoreModules(context_holder->isolate()); 239 registry->AttemptToLoadMoreModules(context_holder->isolate());
230 } 240 }
231 241
232 } // namespace content 242 } // namespace content
OLDNEW
« no previous file with comments | « content/content_resources.grd ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698