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

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

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Min's nits Created 5 years, 5 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void DocumentLoadedInFrame(RenderFrameHost* render_frame_host) override; 64 void DocumentLoadedInFrame(RenderFrameHost* render_frame_host) override;
65 void NavigationEntryCommitted( 65 void NavigationEntryCommitted(
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,
75 bool is_suspended) override;
74 76
75 void DidFailLoadInternal(bool is_provisional_load, 77 void DidFailLoadInternal(bool is_provisional_load,
76 bool is_main_frame, 78 bool is_main_frame,
77 int error_code, 79 int error_code,
78 const base::string16& description, 80 const base::string16& description,
79 const GURL& url, 81 const GURL& url,
80 bool was_ignored_by_handler); 82 bool was_ignored_by_handler);
81 83
82 base::android::ScopedJavaGlobalRef<jobject> java_observer_; 84 base::android::ScopedJavaGlobalRef<jobject> java_observer_;
83 85
84 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); 86 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy);
85 }; 87 };
86 88
87 bool RegisterWebContentsObserverProxy(JNIEnv* env); 89 bool RegisterWebContentsObserverProxy(JNIEnv* env);
88 } // namespace content 90 } // namespace content
89 91
90 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ 92 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698