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

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

Issue 10834350: Remove all the indexeddb-related utility process code (Closed) Base URL: http://git.chromium.org/chromium/src.git@opencursor-cleanup
Patch Set: Rebase, attempt to reland Created 8 years, 4 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
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/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/renderer/renderer_clipboard_client.h" 32 #include "content/renderer/renderer_clipboard_client.h"
33 #include "content/renderer/websharedworkerrepository_impl.h" 33 #include "content/renderer/websharedworkerrepository_impl.h"
34 #include "googleurl/src/gurl.h" 34 #include "googleurl/src/gurl.h"
35 #include "ipc/ipc_sync_message_filter.h" 35 #include "ipc/ipc_sync_message_filter.h"
36 #include "media/audio/audio_output_device.h" 36 #include "media/audio/audio_output_device.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenter.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenter.h"
45 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenterClient.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenterClient.h"
46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandler.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandler.h"
47 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandlerClient.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandlerClient.h"
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
49 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h"
50 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 47 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
51 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 48 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
52 #include "webkit/glue/simple_webmimeregistry_impl.h" 49 #include "webkit/glue/simple_webmimeregistry_impl.h"
53 #include "webkit/glue/webclipboard_impl.h" 50 #include "webkit/glue/webclipboard_impl.h"
54 #include "webkit/glue/webfileutilities_impl.h" 51 #include "webkit/glue/webfileutilities_impl.h"
55 #include "webkit/glue/webkit_glue.h" 52 #include "webkit/glue/webkit_glue.h"
56 53
57 #if defined(OS_WIN) 54 #if defined(OS_WIN)
58 #include "content/common/child_process_messages.h" 55 #include "content/common/child_process_messages.h"
59 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/win/WebSandb oxSupport.h" 56 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/win/WebSandb oxSupport.h"
(...skipping 20 matching lines...) Expand all
80 #endif 77 #endif
81 78
82 using content::RenderThread; 79 using content::RenderThread;
83 using WebKit::WebAudioDevice; 80 using WebKit::WebAudioDevice;
84 using WebKit::WebBlobRegistry; 81 using WebKit::WebBlobRegistry;
85 using WebKit::WebFileInfo; 82 using WebKit::WebFileInfo;
86 using WebKit::WebFileSystem; 83 using WebKit::WebFileSystem;
87 using WebKit::WebFrame; 84 using WebKit::WebFrame;
88 using WebKit::WebGamepads; 85 using WebKit::WebGamepads;
89 using WebKit::WebIDBFactory; 86 using WebKit::WebIDBFactory;
90 using WebKit::WebIDBKey;
91 using WebKit::WebIDBKeyPath;
92 using WebKit::WebKitPlatformSupport; 87 using WebKit::WebKitPlatformSupport;
93 using WebKit::WebMediaStreamCenter; 88 using WebKit::WebMediaStreamCenter;
94 using WebKit::WebMediaStreamCenterClient; 89 using WebKit::WebMediaStreamCenterClient;
95 using WebKit::WebPeerConnection00Handler; 90 using WebKit::WebPeerConnection00Handler;
96 using WebKit::WebPeerConnection00HandlerClient; 91 using WebKit::WebPeerConnection00HandlerClient;
97 using WebKit::WebPeerConnectionHandler; 92 using WebKit::WebPeerConnectionHandler;
98 using WebKit::WebPeerConnectionHandlerClient; 93 using WebKit::WebPeerConnectionHandlerClient;
99 using WebKit::WebSerializedScriptValue;
100 using WebKit::WebStorageNamespace; 94 using WebKit::WebStorageNamespace;
101 using WebKit::WebString; 95 using WebKit::WebString;
102 using WebKit::WebURL; 96 using WebKit::WebURL;
103 using WebKit::WebVector; 97 using WebKit::WebVector;
104 98
105 static bool g_sandbox_enabled = true; 99 static bool g_sandbox_enabled = true;
106 100
107 //------------------------------------------------------------------------------ 101 //------------------------------------------------------------------------------
108 102
109 class RendererWebKitPlatformSupportImpl::MimeRegistry 103 class RendererWebKitPlatformSupportImpl::MimeRegistry
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { 332 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() {
339 if (!web_idb_factory_.get()) { 333 if (!web_idb_factory_.get()) {
340 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) 334 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
341 web_idb_factory_.reset(WebIDBFactory::create()); 335 web_idb_factory_.reset(WebIDBFactory::create());
342 else 336 else
343 web_idb_factory_.reset(new RendererWebIDBFactoryImpl()); 337 web_idb_factory_.reset(new RendererWebIDBFactoryImpl());
344 } 338 }
345 return web_idb_factory_.get(); 339 return web_idb_factory_.get();
346 } 340 }
347 341
348 void RendererWebKitPlatformSupportImpl::createIDBKeysFromSerializedValuesAndKeyP ath(
349 const WebVector<WebSerializedScriptValue>& values,
350 const WebIDBKeyPath& keyPath,
351 WebVector<WebIDBKey>& keys_out) {
352 DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess));
353 WebVector<WebIDBKey> keys(values.size());
354 for (size_t i = 0; i < values.size(); ++i) {
355 keys[i] = WebIDBKey::createFromValueAndKeyPath(
356 values[i], keyPath);
357 }
358 keys_out.swap(keys);
359 }
360
361 WebSerializedScriptValue
362 RendererWebKitPlatformSupportImpl::injectIDBKeyIntoSerializedValue(
363 const WebIDBKey& key,
364 const WebSerializedScriptValue& value,
365 const WebIDBKeyPath& keyPath) {
366 DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess));
367 return WebIDBKey::injectIDBKeyIntoSerializedValue(
368 key, value, keyPath);
369 }
370
371 //------------------------------------------------------------------------------ 342 //------------------------------------------------------------------------------
372 343
373 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { 344 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() {
374 if (!web_file_system_.get()) 345 if (!web_file_system_.get())
375 web_file_system_.reset(new WebFileSystemImpl()); 346 web_file_system_.reset(new WebFileSystemImpl());
376 return web_file_system_.get(); 347 return web_file_system_.get();
377 } 348 }
378 349
379 //------------------------------------------------------------------------------ 350 //------------------------------------------------------------------------------
380 351
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 bool enable) { 701 bool enable) {
731 bool was_enabled = g_sandbox_enabled; 702 bool was_enabled = g_sandbox_enabled;
732 g_sandbox_enabled = enable; 703 g_sandbox_enabled = enable;
733 return was_enabled; 704 return was_enabled;
734 } 705 }
735 706
736 GpuChannelHostFactory* 707 GpuChannelHostFactory*
737 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 708 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
738 return RenderThreadImpl::current(); 709 return RenderThreadImpl::current();
739 } 710 }
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | content/utility/utility_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698