| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/android/document/document_web_contents_delegate.h" | 5 #include "chrome/browser/android/document/document_web_contents_delegate.h" |
| 6 | 6 |
| 7 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 7 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
| 8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
| 9 #include "jni/DocumentWebContentsDelegate_jni.h" | 9 #include "jni/DocumentWebContentsDelegate_jni.h" |
| 10 | 10 |
| 11 using base::android::JavaParamRef; |
| 12 |
| 11 DocumentWebContentsDelegate::DocumentWebContentsDelegate(JNIEnv* env, | 13 DocumentWebContentsDelegate::DocumentWebContentsDelegate(JNIEnv* env, |
| 12 jobject obj) | 14 jobject obj) |
| 13 : WebContentsDelegateAndroid(env, obj) { | 15 : WebContentsDelegateAndroid(env, obj) { |
| 14 } | 16 } |
| 15 | 17 |
| 16 DocumentWebContentsDelegate::~DocumentWebContentsDelegate() { | 18 DocumentWebContentsDelegate::~DocumentWebContentsDelegate() { |
| 17 } | 19 } |
| 18 | 20 |
| 19 void DocumentWebContentsDelegate::AttachContents( | 21 void DocumentWebContentsDelegate::AttachContents( |
| 20 JNIEnv* env, | 22 JNIEnv* env, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const GURL& target_url, | 55 const GURL& target_url, |
| 54 const std::string& partition_id, | 56 const std::string& partition_id, |
| 55 content::SessionStorageNamespace* session_storage_namespace) { | 57 content::SessionStorageNamespace* session_storage_namespace) { |
| 56 NOTREACHED(); | 58 NOTREACHED(); |
| 57 return false; | 59 return false; |
| 58 } | 60 } |
| 59 | 61 |
| 60 static jlong Initialize(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 62 static jlong Initialize(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| 61 return reinterpret_cast<intptr_t>(new DocumentWebContentsDelegate(env, obj)); | 63 return reinterpret_cast<intptr_t>(new DocumentWebContentsDelegate(env, obj)); |
| 62 } | 64 } |
| OLD | NEW |