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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 DocumentLoadedInFrame(int64 frame_id, | 77 virtual void DocumentLoadedInFrame(int64 frame_id, |
78 RenderViewHost* render_view_host) OVERRIDE; | 78 RenderViewHost* render_view_host) OVERRIDE; |
79 virtual void NavigationEntryCommitted( | 79 virtual void NavigationEntryCommitted( |
80 const LoadCommittedDetails& load_details) OVERRIDE; | 80 const LoadCommittedDetails& load_details) OVERRIDE; |
81 virtual void WebContentsDestroyed() OVERRIDE; | 81 virtual void WebContentsDestroyed() OVERRIDE; |
82 virtual void DidAttachInterstitialPage() OVERRIDE; | 82 virtual void DidAttachInterstitialPage() OVERRIDE; |
83 virtual void DidDetachInterstitialPage() OVERRIDE; | 83 virtual void DidDetachInterstitialPage() OVERRIDE; |
84 virtual void DidChangeBrandColor(SkColor color) OVERRIDE; | 84 virtual void DidChangeThemeColor(SkColor color) OVERRIDE; |
85 | 85 |
86 void DidFailLoadInternal(bool is_provisional_load, | 86 void DidFailLoadInternal(bool is_provisional_load, |
87 bool is_main_frame, | 87 bool is_main_frame, |
88 int error_code, | 88 int error_code, |
89 const base::string16& description, | 89 const base::string16& description, |
90 const GURL& url); | 90 const GURL& url); |
91 | 91 |
92 JavaObjectWeakGlobalRef weak_java_observer_; | 92 JavaObjectWeakGlobalRef weak_java_observer_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); | 94 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); |
95 }; | 95 }; |
96 | 96 |
97 bool RegisterWebContentsObserverAndroid(JNIEnv* env); | 97 bool RegisterWebContentsObserverAndroid(JNIEnv* env); |
98 } // namespace content | 98 } // namespace content |
99 | 99 |
100 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 100 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
OLD | NEW |