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

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

Issue 11361239: Keep playing audio even when opening another tab, going to another app etc. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 | « webkit/media/android/webmediaplayer_manager_android.cc ('k') | no next file » | 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) 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 WebKit::WebMediaPlayer* CreateMediaPlayer( 442 WebKit::WebMediaPlayer* CreateMediaPlayer(
443 WebFrame* frame, 443 WebFrame* frame,
444 const WebURL& url, 444 const WebURL& url,
445 WebMediaPlayerClient* client) { 445 WebMediaPlayerClient* client) {
446 return CreateMediaPlayer(frame, url, client, NULL); 446 return CreateMediaPlayer(frame, url, client, NULL);
447 } 447 }
448 448
449 #if defined(OS_ANDROID) 449 #if defined(OS_ANDROID)
450 void ReleaseMediaResources() { 450 void ReleaseMediaResources() {
451 test_environment->media_player_manager()->ReleaseMediaResources(); 451 test_environment->media_player_manager()->ReleaseMediaResourcesIfNotPlaying();
452 } 452 }
453 #endif 453 #endif
454 454
455 WebKit::WebApplicationCacheHost* CreateApplicationCacheHost( 455 WebKit::WebApplicationCacheHost* CreateApplicationCacheHost(
456 WebFrame*, WebKit::WebApplicationCacheHostClient* client) { 456 WebFrame*, WebKit::WebApplicationCacheHostClient* client) {
457 return SimpleAppCacheSystem::CreateApplicationCacheHost(client); 457 return SimpleAppCacheSystem::CreateApplicationCacheHost(client);
458 } 458 }
459 459
460 WebKit::WebStorageNamespace* CreateSessionStorageNamespace(unsigned quota) { 460 WebKit::WebStorageNamespace* CreateSessionStorageNamespace(unsigned quota) {
461 return SimpleDomStorageSystem::instance().CreateSessionStorageNamespace(); 461 return SimpleDomStorageSystem::instance().CreateSessionStorageNamespace();
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 // Logging 869 // Logging
870 void EnableWebCoreLogChannels(const std::string& channels) { 870 void EnableWebCoreLogChannels(const std::string& channels) {
871 webkit_glue::EnableWebCoreLogChannels(channels); 871 webkit_glue::EnableWebCoreLogChannels(channels);
872 } 872 }
873 873
874 void SetGamepadData(const WebKit::WebGamepads& pads) { 874 void SetGamepadData(const WebKit::WebGamepads& pads) {
875 test_environment->webkit_platform_support()->setGamepadData(pads); 875 test_environment->webkit_platform_support()->setGamepadData(pads);
876 } 876 }
877 877
878 } // namespace webkit_support 878 } // namespace webkit_support
OLDNEW
« no previous file with comments | « webkit/media/android/webmediaplayer_manager_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698