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

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

Issue 2453623003: Decouple MediaSession messages from WebContents (full patch) (Closed)
Patch Set: nit 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 // browser fullscreen. 701 // browser fullscreen.
702 virtual void ExitFullscreen(bool will_cause_resize) = 0; 702 virtual void ExitFullscreen(bool will_cause_resize) = 0;
703 703
704 // Unblocks requests from renderer for a newly created window. This is 704 // Unblocks requests from renderer for a newly created window. This is
705 // used in showCreatedWindow() or sometimes later in cases where 705 // used in showCreatedWindow() or sometimes later in cases where
706 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests 706 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests
707 // should not yet be resumed. Then the client is responsible for calling this 707 // should not yet be resumed. Then the client is responsible for calling this
708 // as soon as they are ready. 708 // as soon as they are ready.
709 virtual void ResumeLoadingCreatedWebContents() = 0; 709 virtual void ResumeLoadingCreatedWebContents() = 0;
710 710
711 // Requests to resume the current media session.
712 virtual void ResumeMediaSession() = 0;
713 // Requests to suspend the current media session.
714 virtual void SuspendMediaSession() = 0;
715 // Requests to stop the current media session.
716 virtual void StopMediaSession() = 0;
717
718 // Called when the WebContents has displayed a password field on an 711 // Called when the WebContents has displayed a password field on an
719 // HTTP page. This method modifies the appropriate NavigationEntry's 712 // HTTP page. This method modifies the appropriate NavigationEntry's
720 // SSLStatus to record the sensitive input field, so that embedders 713 // SSLStatus to record the sensitive input field, so that embedders
721 // can adjust the UI if desired. 714 // can adjust the UI if desired.
722 virtual void OnPasswordInputShownOnHttp() = 0; 715 virtual void OnPasswordInputShownOnHttp() = 0;
723 716
724 // Called when the WebContents has displayed a credit card field on an 717 // Called when the WebContents has displayed a credit card field on an
725 // HTTP page. This method modifies the appropriate NavigationEntry's 718 // HTTP page. This method modifies the appropriate NavigationEntry's
726 // SSLStatus to record the sensitive input field, so that embedders 719 // SSLStatus to record the sensitive input field, so that embedders
727 // can adjust the UI if desired. 720 // can adjust the UI if desired.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 757
765 private: 758 private:
766 // This interface should only be implemented inside content. 759 // This interface should only be implemented inside content.
767 friend class WebContentsImpl; 760 friend class WebContentsImpl;
768 WebContents() {} 761 WebContents() {}
769 }; 762 };
770 763
771 } // namespace content 764 } // namespace content
772 765
773 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 766 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/media_session_observer.cc ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698