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

Side by Side Diff: extensions/renderer/api/display_source/wifi_display/wifi_display_media_pipeline.h

Issue 1930923002: [chrome.displaySource] Use a scoped enumeration for initialization steps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase Created 4 years, 7 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
« no previous file with comments | « no previous file | extensions/renderer/api/display_source/wifi_display/wifi_display_media_pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_P IPELINE_H_ 5 #ifndef EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_P IPELINE_H_
6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_P IPELINE_H_ 6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_P IPELINE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void InsertRawVideoFrame( 54 void InsertRawVideoFrame(
55 const scoped_refptr<media::VideoFrame>& video_frame, 55 const scoped_refptr<media::VideoFrame>& video_frame,
56 base::TimeTicks reference_time); 56 base::TimeTicks reference_time);
57 57
58 void RequestIDRPicture(); 58 void RequestIDRPicture();
59 59
60 WiFiDisplayAudioEncoder* audio_sink() { return audio_encoder_.get(); } 60 WiFiDisplayAudioEncoder* audio_sink() { return audio_encoder_.get(); }
61 61
62 private: 62 private:
63 using InitStepCompletionCallback = InitCompletionCallback; 63 using InitStepCompletionCallback = InitCompletionCallback;
64 enum InitializationStep : unsigned; 64 enum class InitializationStep : unsigned;
65 65
66 WiFiDisplayMediaPipeline( 66 WiFiDisplayMediaPipeline(
67 wds::SessionType type, 67 wds::SessionType type,
68 const WiFiDisplayVideoEncoder::InitParameters& video_parameters, 68 const WiFiDisplayVideoEncoder::InitParameters& video_parameters,
69 const wds::AudioCodec& audio_codec, 69 const wds::AudioCodec& audio_codec,
70 const std::string& sink_ip_address, 70 const std::string& sink_ip_address,
71 const std::pair<int, int>& sink_rtp_ports, 71 const std::pair<int, int>& sink_rtp_ports,
72 const RegisterMediaServiceCallback& service_callback, 72 const RegisterMediaServiceCallback& service_callback,
73 const ErrorCallback& error_callback); 73 const ErrorCallback& error_callback);
74 74
(...skipping 30 matching lines...) Expand all
105 WiFiDisplayMediaServicePtr media_service_; 105 WiFiDisplayMediaServicePtr media_service_;
106 106
107 base::WeakPtrFactory<WiFiDisplayMediaPipeline> weak_factory_; 107 base::WeakPtrFactory<WiFiDisplayMediaPipeline> weak_factory_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(WiFiDisplayMediaPipeline); 109 DISALLOW_COPY_AND_ASSIGN(WiFiDisplayMediaPipeline);
110 }; 110 };
111 111
112 } // namespace extensions 112 } // namespace extensions
113 113
114 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDI A_PIPELINE_H_ 114 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDI A_PIPELINE_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/renderer/api/display_source/wifi_display/wifi_display_media_pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698