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

Side by Side Diff: content/renderer/render_frame_impl.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/renderer/mojo_context_state.cc ('k') | extensions/renderer/api_test_base.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 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 "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 #include "content/renderer/shared_worker/shared_worker_repository.h" 143 #include "content/renderer/shared_worker/shared_worker_repository.h"
144 #include "content/renderer/shared_worker/websharedworker_proxy.h" 144 #include "content/renderer/shared_worker/websharedworker_proxy.h"
145 #include "content/renderer/skia_benchmarking_extension.h" 145 #include "content/renderer/skia_benchmarking_extension.h"
146 #include "content/renderer/stats_collection_controller.h" 146 #include "content/renderer/stats_collection_controller.h"
147 #include "content/renderer/web_frame_utils.h" 147 #include "content/renderer/web_frame_utils.h"
148 #include "content/renderer/web_ui_extension.h" 148 #include "content/renderer/web_ui_extension.h"
149 #include "content/renderer/web_ui_extension_data.h" 149 #include "content/renderer/web_ui_extension_data.h"
150 #include "crypto/sha2.h" 150 #include "crypto/sha2.h"
151 #include "gin/modules/console.h" 151 #include "gin/modules/console.h"
152 #include "gin/modules/module_registry.h" 152 #include "gin/modules/module_registry.h"
153 #include "gin/modules/timer.h"
153 #include "media/audio/audio_output_device.h" 154 #include "media/audio/audio_output_device.h"
154 #include "media/base/audio_renderer_mixer_input.h" 155 #include "media/base/audio_renderer_mixer_input.h"
155 #include "media/base/cdm_factory.h" 156 #include "media/base/cdm_factory.h"
156 #include "media/base/decoder_factory.h" 157 #include "media/base/decoder_factory.h"
157 #include "media/base/media.h" 158 #include "media/base/media.h"
158 #include "media/base/media_log.h" 159 #include "media/base/media_log.h"
159 #include "media/base/media_switches.h" 160 #include "media/base/media_switches.h"
160 #include "media/blink/url_index.h" 161 #include "media/blink/url_index.h"
161 #include "media/blink/webencryptedmediaclient_impl.h" 162 #include "media/blink/webencryptedmediaclient_impl.h"
162 #include "media/blink/webmediaplayer_impl.h" 163 #include "media/blink/webmediaplayer_impl.h"
(...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2632 v8::Isolate* isolate, 2633 v8::Isolate* isolate,
2633 v8::Local<v8::Context> context) { 2634 v8::Local<v8::Context> context) {
2634 gin::ModuleRegistry* registry = gin::ModuleRegistry::From(context); 2635 gin::ModuleRegistry* registry = gin::ModuleRegistry::From(context);
2635 if (registry->available_modules().count(mojo::edk::js::Core::kModuleName)) 2636 if (registry->available_modules().count(mojo::edk::js::Core::kModuleName))
2636 return; 2637 return;
2637 2638
2638 v8::HandleScope handle_scope(isolate); 2639 v8::HandleScope handle_scope(isolate);
2639 2640
2640 registry->AddBuiltinModule(isolate, gin::Console::kModuleName, 2641 registry->AddBuiltinModule(isolate, gin::Console::kModuleName,
2641 gin::Console::GetModule(isolate)); 2642 gin::Console::GetModule(isolate));
2643 registry->AddBuiltinModule(isolate, gin::TimerModule::kName,
2644 gin::TimerModule::GetModule(isolate));
2642 registry->AddBuiltinModule(isolate, mojo::edk::js::Core::kModuleName, 2645 registry->AddBuiltinModule(isolate, mojo::edk::js::Core::kModuleName,
2643 mojo::edk::js::Core::GetModule(isolate)); 2646 mojo::edk::js::Core::GetModule(isolate));
2644 registry->AddBuiltinModule(isolate, mojo::edk::js::Support::kModuleName, 2647 registry->AddBuiltinModule(isolate, mojo::edk::js::Support::kModuleName,
2645 mojo::edk::js::Support::GetModule(isolate)); 2648 mojo::edk::js::Support::GetModule(isolate));
2646 registry->AddBuiltinModule( 2649 registry->AddBuiltinModule(
2647 isolate, InterfaceProviderJsWrapper::kPerFrameModuleName, 2650 isolate, InterfaceProviderJsWrapper::kPerFrameModuleName,
2648 InterfaceProviderJsWrapper::Create( 2651 InterfaceProviderJsWrapper::Create(
2649 isolate, context, remote_interfaces_.get()) 2652 isolate, context, remote_interfaces_.get())
2650 .ToV8()); 2653 .ToV8());
2651 registry->AddBuiltinModule( 2654 registry->AddBuiltinModule(
(...skipping 4317 matching lines...) Expand 10 before | Expand all | Expand 10 after
6969 policy(info.defaultPolicy), 6972 policy(info.defaultPolicy),
6970 replaces_current_history_item(info.replacesCurrentHistoryItem), 6973 replaces_current_history_item(info.replacesCurrentHistoryItem),
6971 history_navigation_in_new_child_frame( 6974 history_navigation_in_new_child_frame(
6972 info.isHistoryNavigationInNewChildFrame), 6975 info.isHistoryNavigationInNewChildFrame),
6973 client_redirect(info.isClientRedirect), 6976 client_redirect(info.isClientRedirect),
6974 cache_disabled(info.isCacheDisabled), 6977 cache_disabled(info.isCacheDisabled),
6975 form(info.form), 6978 form(info.form),
6976 source_location(info.sourceLocation) {} 6979 source_location(info.sourceLocation) {}
6977 6980
6978 } // namespace content 6981 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/mojo_context_state.cc ('k') | extensions/renderer/api_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698