| 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 #ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ | 6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 void Destroy(JNIEnv* env, jobject obj); | 30 void Destroy(JNIEnv* env, jobject obj); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 void RenderViewReady() override; | 33 void RenderViewReady() override; |
| 34 void RenderProcessGone(base::TerminationStatus termination_status) override; | 34 void RenderProcessGone(base::TerminationStatus termination_status) override; |
| 35 void DidStartLoading() override; | 35 void DidStartLoading() override; |
| 36 void DidStopLoading() override; | 36 void DidStopLoading() override; |
| 37 void DidFailProvisionalLoad(RenderFrameHost* render_frame_host, | 37 void DidFailProvisionalLoad(RenderFrameHost* render_frame_host, |
| 38 const GURL& validated_url, | 38 const GURL& validated_url, |
| 39 int error_code, | 39 int error_code, |
| 40 const base::string16& error_description) override; | 40 const base::string16& error_description, |
| 41 bool was_ignored_by_handler) override; |
| 41 void DidFailLoad(RenderFrameHost* render_frame_host, | 42 void DidFailLoad(RenderFrameHost* render_frame_host, |
| 42 const GURL& validated_url, | 43 const GURL& validated_url, |
| 43 int error_code, | 44 int error_code, |
| 44 const base::string16& error_description) override; | 45 const base::string16& error_description, |
| 46 bool was_ignored_by_handler) override; |
| 45 void DidNavigateMainFrame(const LoadCommittedDetails& details, | 47 void DidNavigateMainFrame(const LoadCommittedDetails& details, |
| 46 const FrameNavigateParams& params) override; | 48 const FrameNavigateParams& params) override; |
| 47 void DidNavigateAnyFrame(RenderFrameHost* render_frame_host, | 49 void DidNavigateAnyFrame(RenderFrameHost* render_frame_host, |
| 48 const LoadCommittedDetails& details, | 50 const LoadCommittedDetails& details, |
| 49 const FrameNavigateParams& params) override; | 51 const FrameNavigateParams& params) override; |
| 50 void DocumentAvailableInMainFrame() override; | 52 void DocumentAvailableInMainFrame() override; |
| 51 void DidFirstVisuallyNonEmptyPaint() override; | 53 void DidFirstVisuallyNonEmptyPaint() override; |
| 52 void DidStartProvisionalLoadForFrame(RenderFrameHost* render_frame_host, | 54 void DidStartProvisionalLoadForFrame(RenderFrameHost* render_frame_host, |
| 53 const GURL& validated_url, | 55 const GURL& validated_url, |
| 54 bool is_error_page, | 56 bool is_error_page, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 67 void DidDetachInterstitialPage() override; | 69 void DidDetachInterstitialPage() override; |
| 68 void DidChangeThemeColor(SkColor color) override; | 70 void DidChangeThemeColor(SkColor color) override; |
| 69 void DidStartNavigationToPendingEntry( | 71 void DidStartNavigationToPendingEntry( |
| 70 const GURL& url, | 72 const GURL& url, |
| 71 NavigationController::ReloadType reload_type) override; | 73 NavigationController::ReloadType reload_type) override; |
| 72 | 74 |
| 73 void DidFailLoadInternal(bool is_provisional_load, | 75 void DidFailLoadInternal(bool is_provisional_load, |
| 74 bool is_main_frame, | 76 bool is_main_frame, |
| 75 int error_code, | 77 int error_code, |
| 76 const base::string16& description, | 78 const base::string16& description, |
| 77 const GURL& url); | 79 const GURL& url, |
| 80 bool was_ignored_by_handler); |
| 78 | 81 |
| 79 base::android::ScopedJavaGlobalRef<jobject> java_observer_; | 82 base::android::ScopedJavaGlobalRef<jobject> java_observer_; |
| 80 | 83 |
| 81 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); | 84 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 bool RegisterWebContentsObserverProxy(JNIEnv* env); | 87 bool RegisterWebContentsObserverProxy(JNIEnv* env); |
| 85 } // namespace content | 88 } // namespace content |
| 86 | 89 |
| 87 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ | 90 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ |
| OLD | NEW |