OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 #endif | 877 #endif |
878 | 878 |
879 media::CdmFactory* GetCdmFactory(); | 879 media::CdmFactory* GetCdmFactory(); |
880 | 880 |
881 void RegisterMojoServices(); | 881 void RegisterMojoServices(); |
882 | 882 |
883 // Connects to a Mojo application and returns a proxy to its exposed | 883 // Connects to a Mojo application and returns a proxy to its exposed |
884 // ServiceProvider. | 884 // ServiceProvider. |
885 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); | 885 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); |
886 | 886 |
| 887 // Checks that |sink_id| exists and is authorized to be used on |
| 888 // |security_origin|. |
| 889 void checkAudioSink(const blink::WebString& sink_id, |
| 890 const blink::WebSecurityOrigin& security_origin, |
| 891 blink::WebSetSinkIdCallbacks* callback) override; |
| 892 |
887 // Stores the WebLocalFrame we are associated with. This is null from the | 893 // Stores the WebLocalFrame we are associated with. This is null from the |
888 // constructor until SetWebFrame is called, and it is null after | 894 // constructor until SetWebFrame is called, and it is null after |
889 // frameDetached is called until destruction (which is asynchronous in the | 895 // frameDetached is called until destruction (which is asynchronous in the |
890 // case of the main frame, but not subframes). | 896 // case of the main frame, but not subframes). |
891 blink::WebLocalFrame* frame_; | 897 blink::WebLocalFrame* frame_; |
892 | 898 |
893 // Boolean value indicating whether this RenderFrameImpl object is for the | 899 // Boolean value indicating whether this RenderFrameImpl object is for the |
894 // main frame or not. It remains accurate during destruction, even when | 900 // main frame or not. It remains accurate during destruction, even when |
895 // |frame_| has been invalidated. | 901 // |frame_| has been invalidated. |
896 bool is_main_frame_; | 902 bool is_main_frame_; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 #endif | 1085 #endif |
1080 | 1086 |
1081 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1087 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1082 | 1088 |
1083 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1089 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1084 }; | 1090 }; |
1085 | 1091 |
1086 } // namespace content | 1092 } // namespace content |
1087 | 1093 |
1088 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1094 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |