Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <set> | 10 #include <set> |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 | 35 |
| 36 namespace base { | 36 namespace base { |
| 37 class DictionaryValue; | 37 class DictionaryValue; |
| 38 class TimeTicks; | 38 class TimeTicks; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 struct WebFindOptions; | 42 struct WebFindOptions; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace blink { | |
| 46 namespace mojom { | |
|
boliu
2016/10/24 17:02:47
put this in the namespace above?
Zhiqiang Zhang (Slow)
2016/10/24 17:33:10
No need for this since it's not in the public API.
| |
| 47 enum class MediaSessionAction; | |
| 48 } | |
| 49 } | |
| 50 | |
| 45 namespace net { | 51 namespace net { |
| 46 struct LoadStateWithParam; | 52 struct LoadStateWithParam; |
| 47 } | 53 } |
| 48 | 54 |
| 49 namespace service_manager { | 55 namespace service_manager { |
| 50 class InterfaceProvider; | 56 class InterfaceProvider; |
| 51 } | 57 } |
| 52 | 58 |
| 53 namespace content { | 59 namespace content { |
| 54 | 60 |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 696 // browser fullscreen. | 702 // browser fullscreen. |
| 697 virtual void ExitFullscreen(bool will_cause_resize) = 0; | 703 virtual void ExitFullscreen(bool will_cause_resize) = 0; |
| 698 | 704 |
| 699 // Unblocks requests from renderer for a newly created window. This is | 705 // Unblocks requests from renderer for a newly created window. This is |
| 700 // used in showCreatedWindow() or sometimes later in cases where | 706 // used in showCreatedWindow() or sometimes later in cases where |
| 701 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests | 707 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests |
| 702 // should not yet be resumed. Then the client is responsible for calling this | 708 // should not yet be resumed. Then the client is responsible for calling this |
| 703 // as soon as they are ready. | 709 // as soon as they are ready. |
| 704 virtual void ResumeLoadingCreatedWebContents() = 0; | 710 virtual void ResumeLoadingCreatedWebContents() = 0; |
| 705 | 711 |
| 712 // TODO(zqzhang): Decouple MediaSession messages from WebContents to avoid | |
| 713 // plumbing. See https://crbug.com/658678 | |
| 714 | |
| 706 // Requests to resume the current media session. | 715 // Requests to resume the current media session. |
| 707 virtual void ResumeMediaSession() = 0; | 716 virtual void ResumeMediaSession() = 0; |
| 708 // Requests to suspend the current media session. | 717 // Requests to suspend the current media session. |
| 709 virtual void SuspendMediaSession() = 0; | 718 virtual void SuspendMediaSession() = 0; |
| 710 // Requests to stop the current media session. | 719 // Requests to stop the current media session. |
| 711 virtual void StopMediaSession() = 0; | 720 virtual void StopMediaSession() = 0; |
| 721 // Tell the media session a user action has performed. | |
| 722 virtual void DidReceiveMediaSessionAction( | |
|
boliu
2016/10/24 17:02:46
Is this only going to be called from WebContentsAn
Zhiqiang Zhang (Slow)
2016/10/24 17:33:10
Thanks. Removed.
| |
| 723 blink::mojom::MediaSessionAction action) = 0; | |
| 712 | 724 |
| 713 // Called when the WebContents has displayed a password field on an | 725 // Called when the WebContents has displayed a password field on an |
| 714 // HTTP page. This method modifies the appropriate NavigationEntry's | 726 // HTTP page. This method modifies the appropriate NavigationEntry's |
| 715 // SSLStatus to record the sensitive input field, so that embedders | 727 // SSLStatus to record the sensitive input field, so that embedders |
| 716 // can adjust the UI if desired. | 728 // can adjust the UI if desired. |
| 717 virtual void OnPasswordInputShownOnHttp() = 0; | 729 virtual void OnPasswordInputShownOnHttp() = 0; |
| 718 | 730 |
| 719 // Called when the WebContents has displayed a credit card field on an | 731 // Called when the WebContents has displayed a credit card field on an |
| 720 // HTTP page. This method modifies the appropriate NavigationEntry's | 732 // HTTP page. This method modifies the appropriate NavigationEntry's |
| 721 // SSLStatus to record the sensitive input field, so that embedders | 733 // SSLStatus to record the sensitive input field, so that embedders |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 759 | 771 |
| 760 private: | 772 private: |
| 761 // This interface should only be implemented inside content. | 773 // This interface should only be implemented inside content. |
| 762 friend class WebContentsImpl; | 774 friend class WebContentsImpl; |
| 763 WebContents() {} | 775 WebContents() {} |
| 764 }; | 776 }; |
| 765 | 777 |
| 766 } // namespace content | 778 } // namespace content |
| 767 | 779 |
| 768 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 780 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |