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

Unified Diff: webkit/support/webkit_support.cc

Issue 8887004: add components for integration test which will detect breakage of media pipeline with video captu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: code review and final Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/support/webkit_support.h ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
===================================================================
--- webkit/support/webkit_support.cc (revision 116514)
+++ webkit/support/webkit_support.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -302,8 +302,10 @@
frame, new_params, plugins.front().path);
}
-WebKit::WebMediaPlayer* CreateMediaPlayer(WebFrame* frame,
- WebMediaPlayerClient* client) {
+WebKit::WebMediaPlayer* CreateMediaPlayer(
+ WebFrame* frame,
+ WebMediaPlayerClient* client,
+ webkit_media::MediaStreamClient* media_stream_client) {
#if defined(OS_ANDROID)
// TODO: Implement the WebMediaPlayer that will be used for Android.
return NULL;
@@ -320,7 +322,7 @@
base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(),
collection.release(),
message_loop_factory.release(),
- NULL,
+ media_stream_client,
new media::MediaLog()));
if (!result->Initialize(frame, false)) {
return NULL;
@@ -329,6 +331,12 @@
#endif
}
+WebKit::WebMediaPlayer* CreateMediaPlayer(
+ WebFrame* frame,
+ WebMediaPlayerClient* client) {
+ return CreateMediaPlayer(frame, client, NULL);
+}
+
WebKit::WebApplicationCacheHost* CreateApplicationCacheHost(
WebFrame*, WebKit::WebApplicationCacheHostClient* client) {
return SimpleAppCacheSystem::CreateApplicationCacheHost(client);
@@ -342,7 +350,7 @@
}
void SetUpGLBindings(GLBindingPreferences bindingPref) {
- switch(bindingPref) {
+ switch (bindingPref) {
case GL_BINDING_DEFAULT:
gfx::GLSurface::InitializeOneOff();
break;
@@ -512,16 +520,16 @@
// by webkit layout tests.
class ScopedTempDirectoryInternal : public ScopedTempDirectory {
public:
- virtual bool CreateUniqueTempDir() {
- return tempDirectory_.CreateUniqueTempDir();
- }
+ virtual bool CreateUniqueTempDir() {
+ return tempDirectory_.CreateUniqueTempDir();
+ }
- virtual std::string path() const {
- return tempDirectory_.path().MaybeAsASCII();
- }
+ virtual std::string path() const {
+ return tempDirectory_.path().MaybeAsASCII();
+ }
private:
- ScopedTempDir tempDirectory_;
+ ScopedTempDir tempDirectory_;
};
ScopedTempDirectory* CreateScopedTempDirectory() {
@@ -559,8 +567,9 @@
code = -1004; // NSURLErrorCannotConnectToHost
break;
}
- } else
+ } else {
DLOG(WARNING) << "Unknown error domain";
+ }
return base::StringPrintf("<NSError domain %s, code %d, failing URL \"%s\">",
domain.c_str(), code, error.unreachableURL.spec().data());
« no previous file with comments | « webkit/support/webkit_support.h ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698