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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 2794283003: Remove MediaThrottler and MediaThrottleInfoBar (Closed)
Patch Set: Deleted Java code Created 3 years, 8 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 const GURL& security_origin, 483 const GURL& security_origin,
484 MediaStreamType type); 484 MediaStreamType type);
485 485
486 // Returns the ID of the default device for the given media device |type|. 486 // Returns the ID of the default device for the given media device |type|.
487 // If the returned value is an empty string, it means that there is no 487 // If the returned value is an empty string, it means that there is no
488 // default device for the given |type|. 488 // default device for the given |type|.
489 virtual std::string GetDefaultMediaDeviceID(WebContents* web_contents, 489 virtual std::string GetDefaultMediaDeviceID(WebContents* web_contents,
490 MediaStreamType type); 490 MediaStreamType type);
491 491
492 #if defined(OS_ANDROID) 492 #if defined(OS_ANDROID)
493 // Asks permission to decode media stream. After permission is determined,
494 // |callback| will be called with the result.
495 virtual void RequestMediaDecodePermission(
496 WebContents* web_contents,
497 const base::Callback<void(bool)>& callback);
498
499 // Creates a view embedding the video view. 493 // Creates a view embedding the video view.
500 virtual base::android::ScopedJavaLocalRef<jobject> 494 virtual base::android::ScopedJavaLocalRef<jobject>
501 GetContentVideoViewEmbedder(); 495 GetContentVideoViewEmbedder();
502 496
503 // Returns true if the given media should be blocked to load. 497 // Returns true if the given media should be blocked to load.
504 virtual bool ShouldBlockMediaRequest(const GURL& url); 498 virtual bool ShouldBlockMediaRequest(const GURL& url);
505 #endif 499 #endif
506 500
507 // Requests permission to access the PPAPI broker. The delegate should return 501 // Requests permission to access the PPAPI broker. The delegate should return
508 // true and call the passed in |callback| with the result, or return false 502 // true and call the passed in |callback| with the result, or return false
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // Called when |this| is no longer the WebContentsDelegate for |source|. 575 // Called when |this| is no longer the WebContentsDelegate for |source|.
582 void Detach(WebContents* source); 576 void Detach(WebContents* source);
583 577
584 // The WebContents that this is currently a delegate for. 578 // The WebContents that this is currently a delegate for.
585 std::set<WebContents*> attached_contents_; 579 std::set<WebContents*> attached_contents_;
586 }; 580 };
587 581
588 } // namespace content 582 } // namespace content
589 583
590 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 584 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698