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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 74043003: Followup cleanup for WebDatabaseObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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 "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #endif 97 #endif
98 98
99 #if defined(OS_POSIX) 99 #if defined(OS_POSIX)
100 #include "base/file_descriptor_posix.h" 100 #include "base/file_descriptor_posix.h"
101 #endif 101 #endif
102 102
103 #if defined(OS_ANDROID) 103 #if defined(OS_ANDROID)
104 #include "content/renderer/media/android/audio_decoder_android.h" 104 #include "content/renderer/media/android/audio_decoder_android.h"
105 #endif 105 #endif
106 106
107 using blink::Platform;
107 using blink::WebAudioDevice; 108 using blink::WebAudioDevice;
108 using blink::WebBlobRegistry; 109 using blink::WebBlobRegistry;
110 using blink::WebDatabaseObserver;
109 using blink::WebFileInfo; 111 using blink::WebFileInfo;
110 using blink::WebFileSystem; 112 using blink::WebFileSystem;
111 using blink::WebFrame; 113 using blink::WebFrame;
112 using blink::WebGamepads; 114 using blink::WebGamepads;
113 using blink::WebIDBFactory; 115 using blink::WebIDBFactory;
114 using blink::Platform;
115 using blink::WebMIDIAccessor; 116 using blink::WebMIDIAccessor;
116 using blink::WebMediaStreamCenter; 117 using blink::WebMediaStreamCenter;
117 using blink::WebMediaStreamCenterClient; 118 using blink::WebMediaStreamCenterClient;
118 using blink::WebMimeRegistry; 119 using blink::WebMimeRegistry;
119 using blink::WebPlatformDatabaseObserver;
120 using blink::WebRTCPeerConnectionHandler; 120 using blink::WebRTCPeerConnectionHandler;
121 using blink::WebRTCPeerConnectionHandlerClient; 121 using blink::WebRTCPeerConnectionHandlerClient;
122 using blink::WebStorageNamespace; 122 using blink::WebStorageNamespace;
123 using blink::WebString; 123 using blink::WebString;
124 using blink::WebURL; 124 using blink::WebURL;
125 using blink::WebVector; 125 using blink::WebVector;
126 126
127 namespace content { 127 namespace content {
128 128
129 static bool g_sandbox_enabled = true; 129 static bool g_sandbox_enabled = true;
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() { 633 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() {
634 RenderThreadImpl* thread = RenderThreadImpl::current(); 634 RenderThreadImpl* thread = RenderThreadImpl::current();
635 return thread->GetAudioHardwareConfig()->GetOutputBufferSize(); 635 return thread->GetAudioHardwareConfig()->GetOutputBufferSize();
636 } 636 }
637 637
638 unsigned RendererWebKitPlatformSupportImpl::audioHardwareOutputChannels() { 638 unsigned RendererWebKitPlatformSupportImpl::audioHardwareOutputChannels() {
639 RenderThreadImpl* thread = RenderThreadImpl::current(); 639 RenderThreadImpl* thread = RenderThreadImpl::current();
640 return thread->GetAudioHardwareConfig()->GetOutputChannels(); 640 return thread->GetAudioHardwareConfig()->GetOutputChannels();
641 } 641 }
642 642
643 WebPlatformDatabaseObserver* 643 WebDatabaseObserver* RendererWebKitPlatformSupportImpl::databaseObserver() {
644 RendererWebKitPlatformSupportImpl::databaseObserver() {
645 return web_database_observer_impl_.get(); 644 return web_database_observer_impl_.get();
646 } 645 }
647 646
648 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. 647 // TODO(crogers): remove deprecated API as soon as WebKit calls new API.
649 WebAudioDevice* 648 WebAudioDevice*
650 RendererWebKitPlatformSupportImpl::createAudioDevice( 649 RendererWebKitPlatformSupportImpl::createAudioDevice(
651 size_t buffer_size, 650 size_t buffer_size,
652 unsigned channels, 651 unsigned channels,
653 double sample_rate, 652 double sample_rate,
654 WebAudioDevice::RenderCallback* callback) { 653 WebAudioDevice::RenderCallback* callback) {
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 return; 1062 return;
1064 QuotaDispatcher::ThreadSpecificInstance( 1063 QuotaDispatcher::ThreadSpecificInstance(
1065 thread_safe_sender_.get(), 1064 thread_safe_sender_.get(),
1066 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1065 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1067 storage_partition, 1066 storage_partition,
1068 static_cast<quota::StorageType>(type), 1067 static_cast<quota::StorageType>(type),
1069 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1068 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1070 } 1069 }
1071 1070
1072 } // namespace content 1071 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | content/worker/worker_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698