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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void DidAttachInterstitialPage() override; | 71 void DidAttachInterstitialPage() override; |
72 void DidDetachInterstitialPage() override; | 72 void DidDetachInterstitialPage() override; |
73 void DidChangeThemeColor(SkColor color) override; | 73 void DidChangeThemeColor(SkColor color) override; |
74 void DidStartNavigationToPendingEntry( | 74 void DidStartNavigationToPendingEntry( |
75 const GURL& url, | 75 const GURL& url, |
76 ReloadType reload_type) override; | 76 ReloadType reload_type) override; |
77 void MediaSessionStateChanged(bool is_controllable, | 77 void MediaSessionStateChanged(bool is_controllable, |
78 bool is_suspended) override; | 78 bool is_suspended) override; |
79 void MediaSessionMetadataChanged( | 79 void MediaSessionMetadataChanged( |
80 const base::Optional<MediaMetadata>& metadata) override; | 80 const base::Optional<MediaMetadata>& metadata) override; |
| 81 void MediaSessionEnabledAction( |
| 82 blink::mojom::MediaSessionAction action) override; |
| 83 void MediaSessionDisabledAction( |
| 84 blink::mojom::MediaSessionAction action) override; |
81 void SetToBaseURLForDataURLIfNeeded(std::string* url); | 85 void SetToBaseURLForDataURLIfNeeded(std::string* url); |
82 | 86 |
83 void DidFailLoadInternal(bool is_provisional_load, | 87 void DidFailLoadInternal(bool is_provisional_load, |
84 bool is_main_frame, | 88 bool is_main_frame, |
85 int error_code, | 89 int error_code, |
86 const base::string16& description, | 90 const base::string16& description, |
87 const GURL& url, | 91 const GURL& url, |
88 bool was_ignored_by_handler); | 92 bool was_ignored_by_handler); |
89 | 93 |
90 base::android::ScopedJavaGlobalRef<jobject> java_observer_; | 94 base::android::ScopedJavaGlobalRef<jobject> java_observer_; |
91 GURL base_url_of_last_started_data_url_; | 95 GURL base_url_of_last_started_data_url_; |
92 | 96 |
93 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); | 97 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); |
94 }; | 98 }; |
95 | 99 |
96 bool RegisterWebContentsObserverProxy(JNIEnv* env); | 100 bool RegisterWebContentsObserverProxy(JNIEnv* env); |
97 } // namespace content | 101 } // namespace content |
98 | 102 |
99 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ | 103 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ |
OLD | NEW |