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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 bool is_main_frame, | 69 bool is_main_frame, |
70 const GURL& url, | 70 const GURL& url, |
71 PageTransition transition_type, | 71 PageTransition transition_type, |
72 RenderViewHost* render_view_host) OVERRIDE; | 72 RenderViewHost* render_view_host) OVERRIDE; |
73 virtual void DidFinishLoad(int64 frame_id, | 73 virtual void DidFinishLoad(int64 frame_id, |
74 const GURL& validated_url, | 74 const GURL& validated_url, |
75 bool is_main_frame, | 75 bool is_main_frame, |
76 RenderViewHost* render_view_host) OVERRIDE; | 76 RenderViewHost* render_view_host) OVERRIDE; |
77 virtual void NavigationEntryCommitted( | 77 virtual void NavigationEntryCommitted( |
78 const LoadCommittedDetails& load_details) OVERRIDE; | 78 const LoadCommittedDetails& load_details) OVERRIDE; |
79 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; | 79 virtual void WebContentsDestroyed() OVERRIDE; |
80 virtual void DidChangeVisibleSSLState() OVERRIDE; | 80 virtual void DidChangeVisibleSSLState() OVERRIDE; |
81 virtual void DidAttachInterstitialPage() OVERRIDE; | 81 virtual void DidAttachInterstitialPage() OVERRIDE; |
82 virtual void DidDetachInterstitialPage() OVERRIDE; | 82 virtual void DidDetachInterstitialPage() OVERRIDE; |
83 | 83 |
84 void DidFailLoadInternal(bool is_provisional_load, | 84 void DidFailLoadInternal(bool is_provisional_load, |
85 bool is_main_frame, | 85 bool is_main_frame, |
86 int error_code, | 86 int error_code, |
87 const base::string16& description, | 87 const base::string16& description, |
88 const GURL& url); | 88 const GURL& url); |
89 | 89 |
90 JavaObjectWeakGlobalRef weak_java_observer_; | 90 JavaObjectWeakGlobalRef weak_java_observer_; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); | 92 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); |
93 }; | 93 }; |
94 | 94 |
95 bool RegisterWebContentsObserverAndroid(JNIEnv* env); | 95 bool RegisterWebContentsObserverAndroid(JNIEnv* env); |
96 } // namespace content | 96 } // namespace content |
97 | 97 |
98 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 98 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
OLD | NEW |