| 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 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); | 216 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); |
| 217 | 217 |
| 218 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); | 218 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); |
| 219 | 219 |
| 220 // -------------------------------------------------------------------------- | 220 // -------------------------------------------------------------------------- |
| 221 // Public methods that call to Java via JNI | 221 // Public methods that call to Java via JNI |
| 222 // -------------------------------------------------------------------------- | 222 // -------------------------------------------------------------------------- |
| 223 | 223 |
| 224 // This method is invoked when the request is deferred immediately after | 224 // This method is invoked when the request is deferred immediately after |
| 225 // receiving response headers. | 225 // receiving response headers. |
| 226 void DidDeferAfterResponseStarted(); | 226 void DidDeferAfterResponseStarted( |
| 227 const scoped_refptr<net::HttpResponseHeaders>& headers, |
| 228 const GURL& url); |
| 227 | 229 |
| 228 // This method is invoked when a navigation transition is detected, to | 230 // This method is invoked when a navigation transition is detected, to |
| 229 // determine if the embedder intends to handle it. | 231 // determine if the embedder intends to handle it. |
| 230 bool WillHandleDeferAfterResponseStarted(); | 232 bool WillHandleDeferAfterResponseStarted(); |
| 231 | 233 |
| 232 void OnSmartClipDataExtracted(const base::string16& text, | 234 void OnSmartClipDataExtracted(const base::string16& text, |
| 233 const base::string16& html, | 235 const base::string16& html, |
| 234 const gfx::Rect& clip_rect); | 236 const gfx::Rect& clip_rect); |
| 235 | 237 |
| 236 // Creates a popup menu with |items|. | 238 // Creates a popup menu with |items|. |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 java_bridge_dispatcher_host_; | 388 java_bridge_dispatcher_host_; |
| 387 | 389 |
| 388 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 390 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 389 }; | 391 }; |
| 390 | 392 |
| 391 bool RegisterContentViewCore(JNIEnv* env); | 393 bool RegisterContentViewCore(JNIEnv* env); |
| 392 | 394 |
| 393 } // namespace content | 395 } // namespace content |
| 394 | 396 |
| 395 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 397 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |