OLD | NEW |
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 Loading... |
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 |
OLD | NEW |