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

Side by Side Diff: media/tools/mfplayer/mf_playback_main.cc

Issue 6713107: Make the windows_version.h functions threadsafe by using a singleton. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « chrome/test/out_of_proc_test_runner.cc ('k') | media/tools/mfplayer/mfplayer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 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 header is placed first to avoid compiler warning. 5 // This header is placed first to avoid compiler warning.
6 #include "media/tools/mfplayer/mfplayer.h" 6 #include "media/tools/mfplayer/mfplayer.h"
7 7
8 #include <mfapi.h> 8 #include <mfapi.h>
9 #define STRSAFE_NO_DEPRECATE
9 #include <strsafe.h> 10 #include <strsafe.h>
11
10 #include <cassert> 12 #include <cassert>
11 13
12 namespace mfplayer { 14 namespace mfplayer {
13 15
14 const wchar_t g_window_title[] = L"MFBasicPlayback"; 16 const wchar_t g_window_title[] = L"MFBasicPlayback";
15 const wchar_t g_window_class[] = L"Chrome_MFBasicPlayback"; 17 const wchar_t g_window_class[] = L"Chrome_MFBasicPlayback";
16 18
17 // True if there is no video playing, so we have to paint the window ourselves. 19 // True if there is no video playing, so we have to paint the window ourselves.
18 bool g_repaint_client = true; 20 bool g_repaint_client = true;
19 21
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 printf("Terminated\n"); 317 printf("Terminated\n");
316 return retval; 318 return retval;
317 } 319 }
318 320
319 } // namespace mfplayer 321 } // namespace mfplayer
320 322
321 323
322 int main(int argc, char** argv) { 324 int main(int argc, char** argv) {
323 return mfplayer::main2(argc, argv); 325 return mfplayer::main2(argc, argv);
324 } 326 }
OLDNEW
« no previous file with comments | « chrome/test/out_of_proc_test_runner.cc ('k') | media/tools/mfplayer/mfplayer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698