OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROXY_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ |
6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ | 6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const LoadCommittedDetails& load_details) override; | 66 const LoadCommittedDetails& load_details) override; |
67 void WebContentsDestroyed() override; | 67 void WebContentsDestroyed() override; |
68 void DidAttachInterstitialPage() override; | 68 void DidAttachInterstitialPage() override; |
69 void DidDetachInterstitialPage() override; | 69 void DidDetachInterstitialPage() override; |
70 void DidChangeThemeColor(SkColor color) override; | 70 void DidChangeThemeColor(SkColor color) override; |
71 void DidStartNavigationToPendingEntry( | 71 void DidStartNavigationToPendingEntry( |
72 const GURL& url, | 72 const GURL& url, |
73 NavigationController::ReloadType reload_type) override; | 73 NavigationController::ReloadType reload_type) override; |
74 void MediaSessionStateChanged(bool is_controllable, | 74 void MediaSessionStateChanged(bool is_controllable, |
75 bool is_suspended) override; | 75 bool is_suspended) override; |
| 76 void SetToBaseURLForDataURLIfNeeded(std::string* url); |
76 | 77 |
77 void DidFailLoadInternal(bool is_provisional_load, | 78 void DidFailLoadInternal(bool is_provisional_load, |
78 bool is_main_frame, | 79 bool is_main_frame, |
79 int error_code, | 80 int error_code, |
80 const base::string16& description, | 81 const base::string16& description, |
81 const GURL& url, | 82 const GURL& url, |
82 bool was_ignored_by_handler); | 83 bool was_ignored_by_handler); |
83 | 84 |
84 base::android::ScopedJavaGlobalRef<jobject> java_observer_; | 85 base::android::ScopedJavaGlobalRef<jobject> java_observer_; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); | 87 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); |
87 }; | 88 }; |
88 | 89 |
89 bool RegisterWebContentsObserverProxy(JNIEnv* env); | 90 bool RegisterWebContentsObserverProxy(JNIEnv* env); |
90 } // namespace content | 91 } // namespace content |
91 | 92 |
92 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ | 93 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ |
OLD | NEW |