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

Side by Side Diff: android_webview/native/aw_contents.cc

Issue 1405333005: Defer loads on WebView popup windows until webcontents delegate attached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit. Created 5 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
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/aw_web_contents_delegate.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "android_webview/native/aw_contents.h" 5 #include "android_webview/native/aw_contents.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_browser_main_parts.h" 10 #include "android_webview/browser/aw_browser_main_parts.h"
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 1216
1217 AwMessagePortServiceImpl::GetInstance()->CreateMessageChannel(env, ports, 1217 AwMessagePortServiceImpl::GetInstance()->CreateMessageChannel(env, ports,
1218 GetMessagePortMessageFilter()); 1218 GetMessagePortMessageFilter());
1219 } 1219 }
1220 1220
1221 void AwContents::GrantFileSchemeAccesstoChildProcess(JNIEnv* env, jobject obj) { 1221 void AwContents::GrantFileSchemeAccesstoChildProcess(JNIEnv* env, jobject obj) {
1222 content::ChildProcessSecurityPolicy::GetInstance()->GrantScheme( 1222 content::ChildProcessSecurityPolicy::GetInstance()->GrantScheme(
1223 web_contents_->GetRenderProcessHost()->GetID(), url::kFileScheme); 1223 web_contents_->GetRenderProcessHost()->GetID(), url::kFileScheme);
1224 } 1224 }
1225 1225
1226 void AwContents::ResumeLoadingCreatedPopupWebContents(JNIEnv* env,
1227 jobject obj) {
1228 web_contents_->ResumeLoadingCreatedWebContents();
1229 }
1230
1226 void SetShouldDownloadFavicons(JNIEnv* env, 1231 void SetShouldDownloadFavicons(JNIEnv* env,
1227 const JavaParamRef<jclass>& jclazz) { 1232 const JavaParamRef<jclass>& jclazz) {
1228 g_should_download_favicons = true; 1233 g_should_download_favicons = true;
1229 } 1234 }
1230 1235
1231 } // namespace android_webview 1236 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/aw_web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698