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

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

Issue 10005049: DomStorage house cleaning (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webstoragearea_impl.cc » ('j') | 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 "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/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 RenderThreadImpl* thread = RenderThreadImpl::current(); 306 RenderThreadImpl* thread = RenderThreadImpl::current();
307 if (thread) // NULL in unittests. 307 if (thread) // NULL in unittests.
308 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled)); 308 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled));
309 } 309 }
310 310
311 WebStorageNamespace* 311 WebStorageNamespace*
312 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace( 312 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace(
313 const WebString& path, unsigned quota) { 313 const WebString& path, unsigned quota) {
314 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND 314 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
315 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_LOCAL); 315 return new RendererWebStorageNamespaceImpl();
316 #else 316 #else
317 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) 317 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
318 return WebStorageNamespace::createLocalStorageNamespace(path, quota); 318 return WebStorageNamespace::createLocalStorageNamespace(path, quota);
319 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_LOCAL); 319 return new RendererWebStorageNamespaceImpl();
320 #endif 320 #endif
321 } 321 }
322 322
323 void RendererWebKitPlatformSupportImpl::dispatchStorageEvent( 323 void RendererWebKitPlatformSupportImpl::dispatchStorageEvent(
324 const WebString& key, const WebString& old_value, 324 const WebString& key, const WebString& old_value,
325 const WebString& new_value, const WebString& origin, 325 const WebString& new_value, const WebString& origin,
326 const WebKit::WebURL& url, bool is_local_storage) { 326 const WebKit::WebURL& url, bool is_local_storage) {
327 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND 327 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
328 NOTREACHED(); 328 NOTREACHED();
329 #else 329 #else
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 DCHECK(render_thread); 735 DCHECK(render_thread);
736 if (!render_thread) 736 if (!render_thread)
737 return NULL; 737 return NULL;
738 return render_thread->CreateMediaStreamCenter(client); 738 return render_thread->CreateMediaStreamCenter(client);
739 } 739 }
740 740
741 GpuChannelHostFactory* 741 GpuChannelHostFactory*
742 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 742 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
743 return RenderThreadImpl::current(); 743 return RenderThreadImpl::current();
744 } 744 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webstoragearea_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698