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

Side by Side Diff: remoting/host/simple_host_process.cc

Issue 7657005: Roll ffmpeg/libvpx deps to switch to ffvp8. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: new libvpx Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | remoting/remoting.gyp » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This is an application of a minimal host process in a Chromoting 5 // This is an application of a minimal host process in a Chromoting
6 // system. It serves the purpose of gluing different pieces together 6 // system. It serves the purpose of gluing different pieces together
7 // to make a functional host process for testing. 7 // to make a functional host process for testing.
8 // 8 //
9 // It peforms the following functionality: 9 // It peforms the following functionality:
10 // 1. Connect to the GTalk network and register the machine as a host. 10 // 1. Connect to the GTalk network and register the machine as a host.
(...skipping 14 matching lines...) Expand all
25 #include "base/command_line.h" 25 #include "base/command_line.h"
26 #include "base/environment.h" 26 #include "base/environment.h"
27 #include "base/file_path.h" 27 #include "base/file_path.h"
28 #include "base/logging.h" 28 #include "base/logging.h"
29 #include "base/mac/scoped_nsautorelease_pool.h" 29 #include "base/mac/scoped_nsautorelease_pool.h"
30 #include "base/message_loop.h" 30 #include "base/message_loop.h"
31 #include "base/path_service.h" 31 #include "base/path_service.h"
32 #include "base/test/mock_chrome_application_mac.h" 32 #include "base/test/mock_chrome_application_mac.h"
33 #include "base/threading/thread.h" 33 #include "base/threading/thread.h"
34 #include "crypto/nss_util.h" 34 #include "crypto/nss_util.h"
35 #include "media/base/media.h"
36 #include "remoting/base/constants.h" 35 #include "remoting/base/constants.h"
37 #include "remoting/base/tracer.h" 36 #include "remoting/base/tracer.h"
38 #include "remoting/host/capturer_fake.h" 37 #include "remoting/host/capturer_fake.h"
39 #include "remoting/host/chromoting_host.h" 38 #include "remoting/host/chromoting_host.h"
40 #include "remoting/host/chromoting_host_context.h" 39 #include "remoting/host/chromoting_host_context.h"
41 #include "remoting/host/continue_window.h" 40 #include "remoting/host/continue_window.h"
42 #include "remoting/host/curtain.h" 41 #include "remoting/host/curtain.h"
43 #include "remoting/host/desktop_environment.h" 42 #include "remoting/host/desktop_environment.h"
44 #include "remoting/host/disconnect_window.h" 43 #include "remoting/host/disconnect_window.h"
45 #include "remoting/host/event_executor.h" 44 #include "remoting/host/event_executor.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 int main(int argc, char** argv) { 264 int main(int argc, char** argv) {
266 // Needed for the Mac, so we don't leak objects when threads are created. 265 // Needed for the Mac, so we don't leak objects when threads are created.
267 base::mac::ScopedNSAutoreleasePool pool; 266 base::mac::ScopedNSAutoreleasePool pool;
268 267
269 CommandLine::Init(argc, argv); 268 CommandLine::Init(argc, argv);
270 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 269 const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
271 270
272 base::AtExitManager exit_manager; 271 base::AtExitManager exit_manager;
273 crypto::EnsureNSPRInit(); 272 crypto::EnsureNSPRInit();
274 273
275 FilePath media_module_path;
276 PathService::Get(base::DIR_MODULE, &media_module_path);
277 CHECK(media::InitializeMediaLibrary(media_module_path))
278 << "Cannot load media library";
279
280 #if defined(TOOLKIT_USES_GTK) 274 #if defined(TOOLKIT_USES_GTK)
281 gfx::GtkInitFromCommandLine(*cmd_line); 275 gfx::GtkInitFromCommandLine(*cmd_line);
282 #endif // TOOLKIT_USES_GTK 276 #endif // TOOLKIT_USES_GTK
283 277
284 #if defined(OS_MACOSX) 278 #if defined(OS_MACOSX)
285 mock_cr_app::RegisterMockCrApp(); 279 mock_cr_app::RegisterMockCrApp();
286 #endif // OS_MACOSX 280 #endif // OS_MACOSX
287 281
288 SimpleHost simple_host; 282 SimpleHost simple_host;
289 283
(...skipping 25 matching lines...) Expand all
315 LOG(ERROR) << "Unknown video codec: " << video_codec; 309 LOG(ERROR) << "Unknown video codec: " << video_codec;
316 return 1; 310 return 1;
317 } 311 }
318 config->mutable_video_configs()->push_back(ChannelConfig( 312 config->mutable_video_configs()->push_back(ChannelConfig(
319 transport, remoting::protocol::kDefaultStreamVersion, codec)); 313 transport, remoting::protocol::kDefaultStreamVersion, codec));
320 simple_host.set_protocol_config(config.release()); 314 simple_host.set_protocol_config(config.release());
321 } 315 }
322 316
323 return simple_host.Run(); 317 return simple_host.Run();
324 } 318 }
OLDNEW
« no previous file with comments | « DEPS ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698