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

Side by Side Diff: webkit/support/webkit_support.cc

Issue 11468033: Vanquish the remnants of media::MessageLoopFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/support/webkit_support.h" 5 #include "webkit/support/webkit_support.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 13 matching lines...) Expand all
24 #include "base/string_piece.h" 24 #include "base/string_piece.h"
25 #include "base/string_util.h" 25 #include "base/string_util.h"
26 #include "base/stringprintf.h" 26 #include "base/stringprintf.h"
27 #include "base/sys_string_conversions.h" 27 #include "base/sys_string_conversions.h"
28 #include "base/time.h" 28 #include "base/time.h"
29 #include "base/utf_string_conversions.h" 29 #include "base/utf_string_conversions.h"
30 #include "googleurl/src/url_util.h" 30 #include "googleurl/src/url_util.h"
31 #include "grit/webkit_chromium_resources.h" 31 #include "grit/webkit_chromium_resources.h"
32 #include "media/base/filter_collection.h" 32 #include "media/base/filter_collection.h"
33 #include "media/base/media_log.h" 33 #include "media/base/media_log.h"
34 #include "media/base/message_loop_factory.h"
35 #include "net/base/escape.h" 34 #include "net/base/escape.h"
36 #include "net/base/net_errors.h" 35 #include "net/base/net_errors.h"
37 #include "net/base/net_util.h" 36 #include "net/base/net_util.h"
38 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError. h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError. h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h " 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h "
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 #if defined(OS_ANDROID) 412 #if defined(OS_ANDROID)
414 return new webkit_media::WebMediaPlayerInProcessAndroid( 413 return new webkit_media::WebMediaPlayerInProcessAndroid(
415 frame, 414 frame,
416 client, 415 client,
417 GetWebKitPlatformSupport()->cookieJar(), 416 GetWebKitPlatformSupport()->cookieJar(),
418 test_environment->media_player_manager(), 417 test_environment->media_player_manager(),
419 test_environment->media_bridge_manager(), 418 test_environment->media_bridge_manager(),
420 new webkit_support::TestStreamTextureFactory(), 419 new webkit_support::TestStreamTextureFactory(),
421 true); 420 true);
422 #else 421 #else
423 scoped_ptr<media::MessageLoopFactory> message_loop_factory(
424 new media::MessageLoopFactory());
425
426 scoped_ptr<media::FilterCollection> collection(
427 new media::FilterCollection());
428
429 return new webkit_media::WebMediaPlayerImpl( 422 return new webkit_media::WebMediaPlayerImpl(
430 frame, 423 frame,
431 client, 424 client,
432 base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(), 425 base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(),
433 collection.release(),
434 NULL, 426 NULL,
435 NULL, 427 NULL,
436 message_loop_factory.release(), 428 NULL,
437 media_stream_client, 429 media_stream_client,
438 new media::MediaLog()); 430 new media::MediaLog());
439 #endif 431 #endif
440 } 432 }
441 433
442 WebKit::WebMediaPlayer* CreateMediaPlayer( 434 WebKit::WebMediaPlayer* CreateMediaPlayer(
443 WebFrame* frame, 435 WebFrame* frame,
444 const WebURL& url, 436 const WebURL& url,
445 WebMediaPlayerClient* client) { 437 WebMediaPlayerClient* client) {
446 return CreateMediaPlayer(frame, url, client, NULL); 438 return CreateMediaPlayer(frame, url, client, NULL);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 // Logging 864 // Logging
873 void EnableWebCoreLogChannels(const std::string& channels) { 865 void EnableWebCoreLogChannels(const std::string& channels) {
874 webkit_glue::EnableWebCoreLogChannels(channels); 866 webkit_glue::EnableWebCoreLogChannels(channels);
875 } 867 }
876 868
877 void SetGamepadData(const WebKit::WebGamepads& pads) { 869 void SetGamepadData(const WebKit::WebGamepads& pads) {
878 test_environment->webkit_platform_support()->setGamepadData(pads); 870 test_environment->webkit_platform_support()->setGamepadData(pads);
879 } 871 }
880 872
881 } // namespace webkit_support 873 } // namespace webkit_support
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698