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

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

Issue 46583005: Send Allow{Database,FileSystem,IndexedDB} sync IPCs directly from worker thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/child/appcache/appcache_dispatcher.h" 10 #include "content/child/appcache/appcache_dispatcher.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 WebKit::WebApplicationCacheHost* RenderFrameImpl::createApplicationCacheHost( 181 WebKit::WebApplicationCacheHost* RenderFrameImpl::createApplicationCacheHost(
182 WebKit::WebFrame* frame, 182 WebKit::WebFrame* frame,
183 WebKit::WebApplicationCacheHostClient* client) { 183 WebKit::WebApplicationCacheHostClient* client) {
184 if (!frame || !frame->view()) 184 if (!frame || !frame->view())
185 return NULL; 185 return NULL;
186 return new RendererWebApplicationCacheHostImpl( 186 return new RendererWebApplicationCacheHostImpl(
187 RenderViewImpl::FromWebView(frame->view()), client, 187 RenderViewImpl::FromWebView(frame->view()), client,
188 RenderThreadImpl::current()->appcache_dispatcher()->backend_proxy()); 188 RenderThreadImpl::current()->appcache_dispatcher()->backend_proxy());
189 } 189 }
190 190
191 WebKit::WebWorkerPermissionClientProxy*
192 RenderFrameImpl::createWorkerPermissionClientProxy(WebFrame* frame) {
193 if (!frame || !frame->view())
194 return NULL;
195 return GetContentClient()->renderer()->CreateWorkerPermissionClientProxy(
196 frame, GetRoutingID());
michaeln 2013/10/29 21:37:00 It looks like the current impl uses the RoutingID
kinuko 2013/10/30 00:24:56 Changed the code to pass RenderView (from the fram
197 }
198
191 WebKit::WebCookieJar* RenderFrameImpl::cookieJar(WebKit::WebFrame* frame) { 199 WebKit::WebCookieJar* RenderFrameImpl::cookieJar(WebKit::WebFrame* frame) {
192 return render_view_->cookieJar(frame); 200 return render_view_->cookieJar(frame);
193 } 201 }
194 202
195 void RenderFrameImpl::didAccessInitialDocument(WebKit::WebFrame* frame) { 203 void RenderFrameImpl::didAccessInitialDocument(WebKit::WebFrame* frame) {
196 render_view_->didAccessInitialDocument(frame); 204 render_view_->didAccessInitialDocument(frame);
197 } 205 }
198 206
199 WebKit::WebFrame* RenderFrameImpl::createChildFrame( 207 WebKit::WebFrame* RenderFrameImpl::createChildFrame(
200 WebKit::WebFrame* parent, 208 WebKit::WebFrame* parent,
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 934
927 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, 935 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame,
928 int arb_robustness_status_code) { 936 int arb_robustness_status_code) {
929 render_view_->Send(new ViewHostMsg_DidLose3DContext( 937 render_view_->Send(new ViewHostMsg_DidLose3DContext(
930 GURL(frame->top()->document().securityOrigin().toString()), 938 GURL(frame->top()->document().securityOrigin().toString()),
931 THREE_D_API_TYPE_WEBGL, 939 THREE_D_API_TYPE_WEBGL,
932 arb_robustness_status_code)); 940 arb_robustness_status_code));
933 } 941 }
934 942
935 } // namespace content 943 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698