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

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

Issue 2444833004: Decouple MediaSession/MediaSessionObserver from WebContents in Java[OBSOLETE, go to the combined CL] (Closed)
Patch Set: addressed nits from jam@ Created 4 years, 1 month 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_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 // browser fullscreen. 698 // browser fullscreen.
699 virtual void ExitFullscreen(bool will_cause_resize) = 0; 699 virtual void ExitFullscreen(bool will_cause_resize) = 0;
700 700
701 // Unblocks requests from renderer for a newly created window. This is 701 // Unblocks requests from renderer for a newly created window. This is
702 // used in showCreatedWindow() or sometimes later in cases where 702 // used in showCreatedWindow() or sometimes later in cases where
703 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests 703 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests
704 // should not yet be resumed. Then the client is responsible for calling this 704 // should not yet be resumed. Then the client is responsible for calling this
705 // as soon as they are ready. 705 // as soon as they are ready.
706 virtual void ResumeLoadingCreatedWebContents() = 0; 706 virtual void ResumeLoadingCreatedWebContents() = 0;
707 707
708 // Requests to resume the current media session.
709 virtual void ResumeMediaSession() = 0;
710 // Requests to suspend the current media session.
711 virtual void SuspendMediaSession() = 0;
712 // Requests to stop the current media session.
713 virtual void StopMediaSession() = 0;
714
715 // Called when the WebContents has displayed a password field on an 708 // Called when the WebContents has displayed a password field on an
716 // HTTP page. This method modifies the appropriate NavigationEntry's 709 // HTTP page. This method modifies the appropriate NavigationEntry's
717 // SSLStatus to record the sensitive input field, so that embedders 710 // SSLStatus to record the sensitive input field, so that embedders
718 // can adjust the UI if desired. 711 // can adjust the UI if desired.
719 virtual void OnPasswordInputShownOnHttp() = 0; 712 virtual void OnPasswordInputShownOnHttp() = 0;
720 713
721 // Called when the WebContents has displayed a credit card field on an 714 // Called when the WebContents has displayed a credit card field on an
722 // HTTP page. This method modifies the appropriate NavigationEntry's 715 // HTTP page. This method modifies the appropriate NavigationEntry's
723 // SSLStatus to record the sensitive input field, so that embedders 716 // SSLStatus to record the sensitive input field, so that embedders
724 // can adjust the UI if desired. 717 // can adjust the UI if desired.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 754
762 private: 755 private:
763 // This interface should only be implemented inside content. 756 // This interface should only be implemented inside content.
764 friend class WebContentsImpl; 757 friend class WebContentsImpl;
765 WebContents() {} 758 WebContents() {}
766 }; 759 };
767 760
768 } // namespace content 761 } // namespace content
769 762
770 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 763 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698