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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void DocumentLoadedInFrame(RenderFrameHost* render_frame_host) override; | 65 void DocumentLoadedInFrame(RenderFrameHost* render_frame_host) override; |
66 void NavigationEntryCommitted( | 66 void NavigationEntryCommitted( |
67 const LoadCommittedDetails& load_details) override; | 67 const LoadCommittedDetails& load_details) override; |
68 void WebContentsDestroyed() override; | 68 void WebContentsDestroyed() override; |
69 void DidAttachInterstitialPage() override; | 69 void DidAttachInterstitialPage() override; |
70 void DidDetachInterstitialPage() override; | 70 void DidDetachInterstitialPage() override; |
71 void DidChangeThemeColor(SkColor color) override; | 71 void DidChangeThemeColor(SkColor color) override; |
72 void DidStartNavigationToPendingEntry( | 72 void DidStartNavigationToPendingEntry( |
73 const GURL& url, | 73 const GURL& url, |
74 ReloadType reload_type) override; | 74 ReloadType reload_type) override; |
75 void MediaSessionStateChanged(bool is_controllable, | |
76 bool is_suspended) override; | |
77 void MediaSessionMetadataChanged( | |
78 const base::Optional<MediaMetadata>& metadata) override; | |
79 void SetToBaseURLForDataURLIfNeeded(std::string* url); | 75 void SetToBaseURLForDataURLIfNeeded(std::string* url); |
80 | 76 |
81 void DidFailLoadInternal(bool is_provisional_load, | 77 void DidFailLoadInternal(bool is_provisional_load, |
82 bool is_main_frame, | 78 bool is_main_frame, |
83 int error_code, | 79 int error_code, |
84 const base::string16& description, | 80 const base::string16& description, |
85 const GURL& url, | 81 const GURL& url, |
86 bool was_ignored_by_handler); | 82 bool was_ignored_by_handler); |
87 | 83 |
88 base::android::ScopedJavaGlobalRef<jobject> java_observer_; | 84 base::android::ScopedJavaGlobalRef<jobject> java_observer_; |
89 GURL base_url_of_last_started_data_url_; | 85 GURL base_url_of_last_started_data_url_; |
90 | 86 |
91 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); | 87 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); |
92 }; | 88 }; |
93 | 89 |
94 bool RegisterWebContentsObserverProxy(JNIEnv* env); | 90 bool RegisterWebContentsObserverProxy(JNIEnv* env); |
95 } // namespace content | 91 } // namespace content |
96 | 92 |
97 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ | 93 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ |
OLD | NEW |