Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/browser/android/web_contents_observer_proxy.h

Issue 1458703003: Media Session API: use MediaMetadata in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session_browser_side
Patch Set: nits Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 NavigationController::ReloadType reload_type) override; 74 NavigationController::ReloadType reload_type) override;
75 void MediaSessionStateChanged(bool is_controllable, 75 void MediaSessionStateChanged(bool is_controllable,
76 bool is_suspended) override; 76 bool is_suspended,
77 const MediaMetadata& metadata) override;
77 void SetToBaseURLForDataURLIfNeeded(std::string* url); 78 void SetToBaseURLForDataURLIfNeeded(std::string* url);
78 79
79 void DidFailLoadInternal(bool is_provisional_load, 80 void DidFailLoadInternal(bool is_provisional_load,
80 bool is_main_frame, 81 bool is_main_frame,
81 int error_code, 82 int error_code,
82 const base::string16& description, 83 const base::string16& description,
83 const GURL& url, 84 const GURL& url,
84 bool was_ignored_by_handler); 85 bool was_ignored_by_handler);
85 86
86 base::android::ScopedJavaGlobalRef<jobject> java_observer_; 87 base::android::ScopedJavaGlobalRef<jobject> java_observer_;
87 GURL base_url_of_last_started_data_url_; 88 GURL base_url_of_last_started_data_url_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); 90 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy);
90 }; 91 };
91 92
92 bool RegisterWebContentsObserverProxy(JNIEnv* env); 93 bool RegisterWebContentsObserverProxy(JNIEnv* env);
93 } // namespace content 94 } // namespace content
94 95
95 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ 96 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698