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

Side by Side Diff: media/mojo/services/mojo_renderer_service.h

Issue 2434413002: Plumb firstPartyForCookies() to MediaPlayerBridge (Closed)
Patch Set: Added bug number to TODO Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 std::unique_ptr<media::Renderer> renderer, 51 std::unique_ptr<media::Renderer> renderer,
52 InitiateSurfaceRequestCB initiate_surface_request_cb, 52 InitiateSurfaceRequestCB initiate_surface_request_cb,
53 mojo::InterfaceRequest<mojom::Renderer> request); 53 mojo::InterfaceRequest<mojom::Renderer> request);
54 54
55 ~MojoRendererService() final; 55 ~MojoRendererService() final;
56 56
57 // mojom::Renderer implementation. 57 // mojom::Renderer implementation.
58 void Initialize(mojom::RendererClientAssociatedPtrInfo client, 58 void Initialize(mojom::RendererClientAssociatedPtrInfo client,
59 mojom::DemuxerStreamPtr audio, 59 mojom::DemuxerStreamPtr audio,
60 mojom::DemuxerStreamPtr video, 60 mojom::DemuxerStreamPtr video,
61 const base::Optional<GURL>& url, 61 const base::Optional<GURL>& media_url,
62 const base::Optional<GURL>& first_party_for_cookies,
62 const InitializeCallback& callback) final; 63 const InitializeCallback& callback) final;
63 void Flush(const FlushCallback& callback) final; 64 void Flush(const FlushCallback& callback) final;
64 void StartPlayingFrom(base::TimeDelta time_delta) final; 65 void StartPlayingFrom(base::TimeDelta time_delta) final;
65 void SetPlaybackRate(double playback_rate) final; 66 void SetPlaybackRate(double playback_rate) final;
66 void SetVolume(float volume) final; 67 void SetVolume(float volume) final;
67 void SetCdm(int32_t cdm_id, const SetCdmCallback& callback) final; 68 void SetCdm(int32_t cdm_id, const SetCdmCallback& callback) final;
68 void InitiateScopedSurfaceRequest( 69 void InitiateScopedSurfaceRequest(
69 const InitiateScopedSurfaceRequestCallback& callback) final; 70 const InitiateScopedSurfaceRequestCallback& callback) final;
70 71
71 private: 72 private:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 156
156 base::WeakPtr<MojoRendererService> weak_this_; 157 base::WeakPtr<MojoRendererService> weak_this_;
157 base::WeakPtrFactory<MojoRendererService> weak_factory_; 158 base::WeakPtrFactory<MojoRendererService> weak_factory_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(MojoRendererService); 160 DISALLOW_COPY_AND_ASSIGN(MojoRendererService);
160 }; 161 };
161 162
162 } // namespace media 163 } // namespace media
163 164
164 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 165 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698