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

Side by Side Diff: chrome/browser/android/chrome_web_contents_delegate_android.h

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version2: added group_id to PermissionRequestID class Created 6 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const base::Callback<void(bool)>& callback) OVERRIDE; 64 const base::Callback<void(bool)>& callback) OVERRIDE;
65 virtual content::WebContents* OpenURLFromTab( 65 virtual content::WebContents* OpenURLFromTab(
66 content::WebContents* source, 66 content::WebContents* source,
67 const content::OpenURLParams& params) OVERRIDE; 67 const content::OpenURLParams& params) OVERRIDE;
68 virtual void AddNewContents(content::WebContents* source, 68 virtual void AddNewContents(content::WebContents* source,
69 content::WebContents* new_contents, 69 content::WebContents* new_contents,
70 WindowOpenDisposition disposition, 70 WindowOpenDisposition disposition,
71 const gfx::Rect& initial_pos, 71 const gfx::Rect& initial_pos,
72 bool user_gesture, 72 bool user_gesture,
73 bool* was_blocked) OVERRIDE; 73 bool* was_blocked) OVERRIDE;
74 virtual void RequestProtectedMediaIdentifierPermission(
75 const content::WebContents* web_contents,
76 const GURL& frame_url,
77 const base::Callback<void(bool)>& callback) OVERRIDE;
78 74
79 private: 75 private:
80 // NotificationObserver implementation. 76 // NotificationObserver implementation.
81 virtual void Observe(int type, 77 virtual void Observe(int type,
82 const content::NotificationSource& source, 78 const content::NotificationSource& source,
83 const content::NotificationDetails& details) OVERRIDE; 79 const content::NotificationDetails& details) OVERRIDE;
84 80
85 void OnFindResultAvailable(content::WebContents* web_contents, 81 void OnFindResultAvailable(content::WebContents* web_contents,
86 const FindNotificationDetails* find_result); 82 const FindNotificationDetails* find_result);
87 83
88 content::NotificationRegistrar notification_registrar_; 84 content::NotificationRegistrar notification_registrar_;
89 }; 85 };
90 86
91 // Register the native methods through JNI. 87 // Register the native methods through JNI.
92 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); 88 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env);
93 89
94 } // namespace android 90 } // namespace android
95 } // namespace chrome 91 } // namespace chrome
96 92
97 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 93 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698