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

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

Issue 9386001: Implement a module system for the extension bindings JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 3041 matching lines...) Expand 10 before | Expand all | Expand 10 after
3052 static_cast<webkit_glue::WebURLLoaderImpl*>(loader); 3052 static_cast<webkit_glue::WebURLLoaderImpl*>(loader);
3053 loader_impl->UpdateRoutingId(routing_id_); 3053 loader_impl->UpdateRoutingId(routing_id_);
3054 } 3054 }
3055 3055
3056 void RenderViewImpl::didExhaustMemoryAvailableForScript(WebFrame* frame) { 3056 void RenderViewImpl::didExhaustMemoryAvailableForScript(WebFrame* frame) {
3057 Send(new ViewHostMsg_JSOutOfMemory(routing_id_)); 3057 Send(new ViewHostMsg_JSOutOfMemory(routing_id_));
3058 } 3058 }
3059 3059
3060 void RenderViewImpl::didCreateScriptContext(WebFrame* frame, 3060 void RenderViewImpl::didCreateScriptContext(WebFrame* frame,
3061 v8::Handle<v8::Context> context, 3061 v8::Handle<v8::Context> context,
3062 int extension_group,
3062 int world_id) { 3063 int world_id) {
3063 content::GetContentClient()->renderer()->DidCreateScriptContext( 3064 content::GetContentClient()->renderer()->DidCreateScriptContext(
3064 frame, context, world_id); 3065 frame, context, extension_group, world_id);
3065 } 3066 }
3066 3067
3067 void RenderViewImpl::willReleaseScriptContext(WebFrame* frame, 3068 void RenderViewImpl::willReleaseScriptContext(WebFrame* frame,
3068 v8::Handle<v8::Context> context, 3069 v8::Handle<v8::Context> context,
3069 int world_id) { 3070 int world_id) {
3070 content::GetContentClient()->renderer()->WillReleaseScriptContext( 3071 content::GetContentClient()->renderer()->WillReleaseScriptContext(
3071 frame, context, world_id); 3072 frame, context, world_id);
3072 } 3073 }
3073 3074
3074 void RenderViewImpl::CheckPreferredSize() { 3075 void RenderViewImpl::CheckPreferredSize() {
(...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after
4975 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 4976 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
4976 return !!RenderThreadImpl::current()->compositor_thread(); 4977 return !!RenderThreadImpl::current()->compositor_thread();
4977 } 4978 }
4978 4979
4979 void RenderViewImpl::OnJavaBridgeInit() { 4980 void RenderViewImpl::OnJavaBridgeInit() {
4980 DCHECK(!java_bridge_dispatcher_.get()); 4981 DCHECK(!java_bridge_dispatcher_.get());
4981 #if defined(ENABLE_JAVA_BRIDGE) 4982 #if defined(ENABLE_JAVA_BRIDGE)
4982 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 4983 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
4983 #endif 4984 #endif
4984 } 4985 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698