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

Side by Side Diff: examples/audio_play_test/play_wav.cc

Issue 1801793003: Move mojo::{Wait,WaitMany}() to (the newly-added) mojo/public/cpp/system/wait.h. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 | examples/content_handler_demo/content_handler_demo.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 5 #include <memory>
6 6
7 #include "mojo/public/c/system/main.h" 7 #include "mojo/public/c/system/main.h"
8 #include "mojo/public/cpp/application/application_delegate.h" 8 #include "mojo/public/cpp/application/application_delegate.h"
9 #include "mojo/public/cpp/application/application_impl.h" 9 #include "mojo/public/cpp/application/application_impl.h"
10 #include "mojo/public/cpp/application/application_runner.h" 10 #include "mojo/public/cpp/application/application_runner.h"
11 #include "mojo/public/cpp/system/data_pipe.h" 11 #include "mojo/public/cpp/system/data_pipe.h"
12 #include "mojo/public/cpp/system/wait.h"
12 #include "mojo/public/cpp/utility/run_loop.h" 13 #include "mojo/public/cpp/utility/run_loop.h"
13 #include "mojo/services/media/audio/interfaces/audio_server.mojom.h" 14 #include "mojo/services/media/audio/interfaces/audio_server.mojom.h"
14 #include "mojo/services/media/audio/interfaces/audio_track.mojom.h" 15 #include "mojo/services/media/audio/interfaces/audio_track.mojom.h"
15 #include "mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.h" 16 #include "mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.h"
16 #include "mojo/services/media/common/cpp/linear_transform.h" 17 #include "mojo/services/media/common/cpp/linear_transform.h"
17 #include "mojo/services/media/common/cpp/local_time.h" 18 #include "mojo/services/media/common/cpp/local_time.h"
18 #include "mojo/services/network/interfaces/network_service.mojom.h" 19 #include "mojo/services/network/interfaces/network_service.mojom.h"
19 #include "mojo/services/network/interfaces/url_loader.mojom.h" 20 #include "mojo/services/network/interfaces/url_loader.mojom.h"
20 21
21 #define PACKED __attribute__((packed)) 22 #define PACKED __attribute__((packed))
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 } // namespace audio 550 } // namespace audio
550 } // namespace media 551 } // namespace media
551 } // namespace mojo 552 } // namespace mojo
552 553
553 MojoResult MojoMain(MojoHandle app_request) { 554 MojoResult MojoMain(MojoHandle app_request) {
554 mojo::ApplicationRunner runner( 555 mojo::ApplicationRunner runner(
555 std::unique_ptr<mojo::media::audio::examples::PlayWAVApp>( 556 std::unique_ptr<mojo::media::audio::examples::PlayWAVApp>(
556 new mojo::media::audio::examples::PlayWAVApp())); 557 new mojo::media::audio::examples::PlayWAVApp()));
557 return runner.Run(app_request); 558 return runner.Run(app_request);
558 } 559 }
OLDNEW
« no previous file with comments | « no previous file | examples/content_handler_demo/content_handler_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698