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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 bool is_main_frame, | 56 bool is_main_frame, |
57 const GURL& validated_url, | 57 const GURL& validated_url, |
58 bool is_error_page, | 58 bool is_error_page, |
59 bool is_iframe_srcdoc, | 59 bool is_iframe_srcdoc, |
60 RenderViewHost* render_view_host) OVERRIDE; | 60 RenderViewHost* render_view_host) OVERRIDE; |
61 virtual void DidFinishLoad(int64 frame_id, | 61 virtual void DidFinishLoad(int64 frame_id, |
62 const GURL& validated_url, | 62 const GURL& validated_url, |
63 bool is_main_frame, | 63 bool is_main_frame, |
64 RenderViewHost* render_view_host) OVERRIDE; | 64 RenderViewHost* render_view_host) OVERRIDE; |
65 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; | 65 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; |
| 66 virtual void DidChangeVisibleSSLState() OVERRIDE; |
66 | 67 |
67 void DidFailLoadInternal(bool is_provisional_load, | 68 void DidFailLoadInternal(bool is_provisional_load, |
68 bool is_main_frame, | 69 bool is_main_frame, |
69 int error_code, | 70 int error_code, |
70 const string16& description, | 71 const string16& description, |
71 const GURL& url); | 72 const GURL& url); |
72 | 73 |
73 JavaObjectWeakGlobalRef weak_java_observer_; | 74 JavaObjectWeakGlobalRef weak_java_observer_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); | 76 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); |
76 }; | 77 }; |
77 | 78 |
78 bool RegisterWebContentsObserverAndroid(JNIEnv* env); | 79 bool RegisterWebContentsObserverAndroid(JNIEnv* env); |
79 } // namespace content | 80 } // namespace content |
80 | 81 |
81 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 82 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
OLD | NEW |