| 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_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const FrameNavigateParams& params) OVERRIDE; | 51 const FrameNavigateParams& params) OVERRIDE; |
| 52 virtual void DidFirstVisuallyNonEmptyPaint() OVERRIDE; | 52 virtual void DidFirstVisuallyNonEmptyPaint() OVERRIDE; |
| 53 virtual void DidStartProvisionalLoadForFrame( | 53 virtual void DidStartProvisionalLoadForFrame( |
| 54 RenderFrameHost* render_frame_host, | 54 RenderFrameHost* render_frame_host, |
| 55 const GURL& validated_url, | 55 const GURL& validated_url, |
| 56 bool is_error_page, | 56 bool is_error_page, |
| 57 bool is_iframe_srcdoc) OVERRIDE; | 57 bool is_iframe_srcdoc) OVERRIDE; |
| 58 virtual void DidCommitProvisionalLoadForFrame( | 58 virtual void DidCommitProvisionalLoadForFrame( |
| 59 RenderFrameHost* render_frame_host, | 59 RenderFrameHost* render_frame_host, |
| 60 const GURL& url, | 60 const GURL& url, |
| 61 PageTransition transition_type) OVERRIDE; | 61 ui::PageTransition transition_type) OVERRIDE; |
| 62 virtual void DidFinishLoad(RenderFrameHost* render_frame_host, | 62 virtual void DidFinishLoad(RenderFrameHost* render_frame_host, |
| 63 const GURL& validated_url) OVERRIDE; | 63 const GURL& validated_url) OVERRIDE; |
| 64 virtual void DocumentLoadedInFrame( | 64 virtual void DocumentLoadedInFrame( |
| 65 RenderFrameHost* render_frame_host) OVERRIDE; | 65 RenderFrameHost* render_frame_host) OVERRIDE; |
| 66 virtual void NavigationEntryCommitted( | 66 virtual void NavigationEntryCommitted( |
| 67 const LoadCommittedDetails& load_details) OVERRIDE; | 67 const LoadCommittedDetails& load_details) OVERRIDE; |
| 68 virtual void WebContentsDestroyed() OVERRIDE; | 68 virtual void WebContentsDestroyed() OVERRIDE; |
| 69 virtual void DidAttachInterstitialPage() OVERRIDE; | 69 virtual void DidAttachInterstitialPage() OVERRIDE; |
| 70 virtual void DidDetachInterstitialPage() OVERRIDE; | 70 virtual void DidDetachInterstitialPage() OVERRIDE; |
| 71 virtual void DidChangeThemeColor(SkColor color) OVERRIDE; | 71 virtual void DidChangeThemeColor(SkColor color) OVERRIDE; |
| 72 | 72 |
| 73 void DidFailLoadInternal(bool is_provisional_load, | 73 void DidFailLoadInternal(bool is_provisional_load, |
| 74 bool is_main_frame, | 74 bool is_main_frame, |
| 75 int error_code, | 75 int error_code, |
| 76 const base::string16& description, | 76 const base::string16& description, |
| 77 const GURL& url); | 77 const GURL& url); |
| 78 | 78 |
| 79 JavaObjectWeakGlobalRef weak_java_observer_; | 79 JavaObjectWeakGlobalRef weak_java_observer_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); | 81 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 bool RegisterWebContentsObserverAndroid(JNIEnv* env); | 84 bool RegisterWebContentsObserverAndroid(JNIEnv* env); |
| 85 } // namespace content | 85 } // namespace content |
| 86 | 86 |
| 87 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 87 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
| OLD | NEW |