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

Unified Diff: chrome/renderer/renderer_webstoragenamespace_impl.cc

Issue 6713024: Move the renderer_web* files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | « chrome/renderer/renderer_webstoragenamespace_impl.h ('k') | chrome/test/render_view_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webstoragenamespace_impl.cc
===================================================================
--- chrome/renderer/renderer_webstoragenamespace_impl.cc (revision 78640)
+++ chrome/renderer/renderer_webstoragenamespace_impl.cc (working copy)
@@ -1,52 +0,0 @@
-// Copyright (c) 2010 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.
-
-#include "chrome/renderer/renderer_webstoragenamespace_impl.h"
-
-#include "chrome/common/render_messages.h"
-#include "chrome/renderer/render_thread.h"
-#include "chrome/renderer/renderer_webstoragearea_impl.h"
-
-using WebKit::WebStorageArea;
-using WebKit::WebStorageNamespace;
-using WebKit::WebString;
-
-RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl(
- DOMStorageType storage_type)
- : storage_type_(storage_type),
- namespace_id_(kLocalStorageNamespaceId) {
- DCHECK(storage_type == DOM_STORAGE_LOCAL);
-}
-
-RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl(
- DOMStorageType storage_type, int64 namespace_id)
- : storage_type_(storage_type),
- namespace_id_(namespace_id) {
- DCHECK(storage_type == DOM_STORAGE_SESSION);
-}
-
-RendererWebStorageNamespaceImpl::~RendererWebStorageNamespaceImpl() {
-}
-
-WebStorageArea* RendererWebStorageNamespaceImpl::createStorageArea(
- const WebString& origin) {
- // Ideally, we'd keep a hash map of origin to these objects. Unfortunately
- // this doesn't seem practical because there's no good way to ref-count these
- // objects, and it'd be unclear who owned them. So, instead, we'll pay the
- // price in terms of wasted memory.
- return new RendererWebStorageAreaImpl(namespace_id_, origin);
-}
-
-WebStorageNamespace* RendererWebStorageNamespaceImpl::copy() {
- // By returning NULL, we're telling WebKit to lazily fetch it the next time
- // session storage is used. In the WebViewClient::createView, we do the
- // book-keeping necessary to make it a true copy-on-write despite not doing
- // anything here, now.
- return NULL;
-}
-
-void RendererWebStorageNamespaceImpl::close() {
- // This is called only on LocalStorage namespaces when WebKit thinks its
- // shutting down. This has no impact on Chromium.
-}
« no previous file with comments | « chrome/renderer/renderer_webstoragenamespace_impl.h ('k') | chrome/test/render_view_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698