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

Side by Side Diff: content/browser/dom_storage/session_storage_namespace_impl.cc

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT 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 | 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/browser/dom_storage/session_storage_namespace_impl.h" 5 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
6 6
7 #include "content/browser/dom_storage/dom_storage_context_impl.h" 7 #include "content/browser/dom_storage/dom_storage_context_impl.h"
8 #include "webkit/dom_storage/dom_storage_session.h" 8 #include "webkit/dom_storage/dom_storage_session.h"
9 9
10 using dom_storage::DomStorageContext; 10 using dom_storage::DomStorageContext;
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 void SessionStorageNamespaceImpl::SetShouldPersist(bool should_persist) { 37 void SessionStorageNamespaceImpl::SetShouldPersist(bool should_persist) {
38 session_->SetShouldPersist(should_persist); 38 session_->SetShouldPersist(should_persist);
39 } 39 }
40 40
41 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() { 41 SessionStorageNamespaceImpl* SessionStorageNamespaceImpl::Clone() {
42 return new SessionStorageNamespaceImpl(session_->Clone()); 42 return new SessionStorageNamespaceImpl(session_->Clone());
43 } 43 }
44 44
45 bool SessionStorageNamespaceImpl::IsFromContext(
46 DOMStorageContextImpl* context) {
47 return session_->IsFromContext(context->context());
48 }
49
45 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl( 50 SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
46 DomStorageSession* clone) 51 DomStorageSession* clone)
47 : session_(clone) { 52 : session_(clone) {
48 } 53 }
49 54
50 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { 55 SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() {
51 } 56 }
OLDNEW
« no previous file with comments | « content/browser/dom_storage/session_storage_namespace_impl.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698