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

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

Issue 1372203002: Throttle media decoding after excessive Android media server crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 years, 2 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const gfx::RectF& active_rect) override; 61 const gfx::RectF& active_rect) override;
62 content::JavaScriptDialogManager* GetJavaScriptDialogManager( 62 content::JavaScriptDialogManager* GetJavaScriptDialogManager(
63 content::WebContents* source) override; 63 content::WebContents* source) override;
64 void RequestMediaAccessPermission( 64 void RequestMediaAccessPermission(
65 content::WebContents* web_contents, 65 content::WebContents* web_contents,
66 const content::MediaStreamRequest& request, 66 const content::MediaStreamRequest& request,
67 const content::MediaResponseCallback& callback) override; 67 const content::MediaResponseCallback& callback) override;
68 bool CheckMediaAccessPermission(content::WebContents* web_contents, 68 bool CheckMediaAccessPermission(content::WebContents* web_contents,
69 const GURL& security_origin, 69 const GURL& security_origin,
70 content::MediaStreamType type) override; 70 content::MediaStreamType type) override;
71 void RequestMediaDecodePermission(
72 content::WebContents* web_contents,
73 const base::Callback<void(bool)>& callback) override;
71 bool RequestPpapiBrokerPermission( 74 bool RequestPpapiBrokerPermission(
72 content::WebContents* web_contents, 75 content::WebContents* web_contents,
73 const GURL& url, 76 const GURL& url,
74 const base::FilePath& plugin_path, 77 const base::FilePath& plugin_path,
75 const base::Callback<void(bool)>& callback) override; 78 const base::Callback<void(bool)>& callback) override;
76 content::WebContents* OpenURLFromTab( 79 content::WebContents* OpenURLFromTab(
77 content::WebContents* source, 80 content::WebContents* source,
78 const content::OpenURLParams& params) override; 81 const content::OpenURLParams& params) override;
79 bool ShouldResumeRequestsForCreatedWindow() override; 82 bool ShouldResumeRequestsForCreatedWindow() override;
80 void AddNewContents(content::WebContents* source, 83 void AddNewContents(content::WebContents* source,
(...skipping 15 matching lines...) Expand all
96 content::NotificationRegistrar notification_registrar_; 99 content::NotificationRegistrar notification_registrar_;
97 }; 100 };
98 101
99 // Register the native methods through JNI. 102 // Register the native methods through JNI.
100 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); 103 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env);
101 104
102 } // namespace android 105 } // namespace android
103 } // namespace chrome 106 } // namespace chrome
104 107
105 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 108 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698