| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void Destroy(JNIEnv* env, jobject obj); | 32 void Destroy(JNIEnv* env, jobject obj); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 virtual void RenderProcessGone( | 35 virtual void RenderProcessGone( |
| 36 base::TerminationStatus termination_status) OVERRIDE; | 36 base::TerminationStatus termination_status) OVERRIDE; |
| 37 virtual void DidStartLoading(RenderViewHost* render_view_host) OVERRIDE; | 37 virtual void DidStartLoading(RenderViewHost* render_view_host) OVERRIDE; |
| 38 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; | 38 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; |
| 39 virtual void DidFailProvisionalLoad( | 39 virtual void DidFailProvisionalLoad( |
| 40 int64 frame_id, | 40 int64 frame_id, |
| 41 const string16& frame_unique_name, | 41 const base::string16& frame_unique_name, |
| 42 bool is_main_frame, | 42 bool is_main_frame, |
| 43 const GURL& validated_url, | 43 const GURL& validated_url, |
| 44 int error_code, | 44 int error_code, |
| 45 const string16& error_description, | 45 const base::string16& error_description, |
| 46 RenderViewHost* render_view_host) OVERRIDE; | 46 RenderViewHost* render_view_host) OVERRIDE; |
| 47 virtual void DidFailLoad(int64 frame_id, | 47 virtual void DidFailLoad(int64 frame_id, |
| 48 const GURL& validated_url, | 48 const GURL& validated_url, |
| 49 bool is_main_frame, | 49 bool is_main_frame, |
| 50 int error_code, | 50 int error_code, |
| 51 const string16& error_description, | 51 const base::string16& error_description, |
| 52 RenderViewHost* render_view_host) OVERRIDE; | 52 RenderViewHost* render_view_host) OVERRIDE; |
| 53 virtual void DidNavigateMainFrame(const LoadCommittedDetails& details, | 53 virtual void DidNavigateMainFrame(const LoadCommittedDetails& details, |
| 54 const FrameNavigateParams& params) OVERRIDE; | 54 const FrameNavigateParams& params) OVERRIDE; |
| 55 virtual void DidNavigateAnyFrame(const LoadCommittedDetails& details, | 55 virtual void DidNavigateAnyFrame(const LoadCommittedDetails& details, |
| 56 const FrameNavigateParams& params) OVERRIDE; | 56 const FrameNavigateParams& params) OVERRIDE; |
| 57 virtual void DidStartProvisionalLoadForFrame( | 57 virtual void DidStartProvisionalLoadForFrame( |
| 58 int64 frame_id, | 58 int64 frame_id, |
| 59 int64 parent_frame_id, | 59 int64 parent_frame_id, |
| 60 bool is_main_frame, | 60 bool is_main_frame, |
| 61 const GURL& validated_url, | 61 const GURL& validated_url, |
| 62 bool is_error_page, | 62 bool is_error_page, |
| 63 bool is_iframe_srcdoc, | 63 bool is_iframe_srcdoc, |
| 64 RenderViewHost* render_view_host) OVERRIDE; | 64 RenderViewHost* render_view_host) OVERRIDE; |
| 65 virtual void DidCommitProvisionalLoadForFrame( | 65 virtual void DidCommitProvisionalLoadForFrame( |
| 66 int64 frame_id, | 66 int64 frame_id, |
| 67 const string16& frame_unique_name, | 67 const base::string16& frame_unique_name, |
| 68 bool is_main_frame, | 68 bool is_main_frame, |
| 69 const GURL& url, | 69 const GURL& url, |
| 70 PageTransition transition_type, | 70 PageTransition transition_type, |
| 71 RenderViewHost* render_view_host) OVERRIDE; | 71 RenderViewHost* render_view_host) OVERRIDE; |
| 72 virtual void DidFinishLoad(int64 frame_id, | 72 virtual void DidFinishLoad(int64 frame_id, |
| 73 const GURL& validated_url, | 73 const GURL& validated_url, |
| 74 bool is_main_frame, | 74 bool is_main_frame, |
| 75 RenderViewHost* render_view_host) OVERRIDE; | 75 RenderViewHost* render_view_host) OVERRIDE; |
| 76 virtual void NavigationEntryCommitted( | 76 virtual void NavigationEntryCommitted( |
| 77 const LoadCommittedDetails& load_details) OVERRIDE; | 77 const LoadCommittedDetails& load_details) OVERRIDE; |
| 78 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; | 78 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; |
| 79 virtual void DidChangeVisibleSSLState() OVERRIDE; | 79 virtual void DidChangeVisibleSSLState() OVERRIDE; |
| 80 virtual void DidAttachInterstitialPage() OVERRIDE; | 80 virtual void DidAttachInterstitialPage() OVERRIDE; |
| 81 virtual void DidDetachInterstitialPage() OVERRIDE; | 81 virtual void DidDetachInterstitialPage() OVERRIDE; |
| 82 | 82 |
| 83 void DidFailLoadInternal(bool is_provisional_load, | 83 void DidFailLoadInternal(bool is_provisional_load, |
| 84 bool is_main_frame, | 84 bool is_main_frame, |
| 85 int error_code, | 85 int error_code, |
| 86 const string16& description, | 86 const base::string16& description, |
| 87 const GURL& url); | 87 const GURL& url); |
| 88 | 88 |
| 89 JavaObjectWeakGlobalRef weak_java_observer_; | 89 JavaObjectWeakGlobalRef weak_java_observer_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); | 91 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 bool RegisterWebContentsObserverAndroid(JNIEnv* env); | 94 bool RegisterWebContentsObserverAndroid(JNIEnv* env); |
| 95 } // namespace content | 95 } // namespace content |
| 96 | 96 |
| 97 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 97 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
| OLD | NEW |