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

Unified Diff: webkit/browser/dom_storage/dom_storage_session.h

Issue 22297005: Move webkit/{browser,common}/dom_storage into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: webkit/browser/dom_storage/dom_storage_session.h
diff --git a/webkit/browser/dom_storage/dom_storage_session.h b/webkit/browser/dom_storage/dom_storage_session.h
deleted file mode 100644
index b500859e9cf77ec94ec809671686e3f973b2f4fe..0000000000000000000000000000000000000000
--- a/webkit/browser/dom_storage/dom_storage_session.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef WEBKIT_BROWSER_DOM_STORAGE_DOM_STORAGE_SESSION_H_
-#define WEBKIT_BROWSER_DOM_STORAGE_DOM_STORAGE_SESSION_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
-
-namespace dom_storage {
-
-class DomStorageContext;
-
-// This refcounted class determines the lifetime of a session
-// storage namespace and provides an interface to Clone() an
-// existing session storage namespace. It may be used on any thread.
-// See class comments for DomStorageContext for a larger overview.
-class WEBKIT_STORAGE_BROWSER_EXPORT DomStorageSession
- : public base::RefCountedThreadSafe<DomStorageSession> {
- public:
- // Constructs a |DomStorageSession| and allocates new IDs for it.
- explicit DomStorageSession(DomStorageContext* context);
-
- // Constructs a |DomStorageSession| and assigns |persistent_namespace_id|
- // to it. Allocates a new non-persistent ID.
- DomStorageSession(DomStorageContext* context,
- const std::string& persistent_namespace_id);
-
- int64 namespace_id() const { return namespace_id_; }
- const std::string& persistent_namespace_id() const {
- return persistent_namespace_id_;
- }
- void SetShouldPersist(bool should_persist);
- bool should_persist() const;
- bool IsFromContext(DomStorageContext* context);
- DomStorageSession* Clone();
-
- // Constructs a |DomStorageSession| by cloning
- // |namespace_id_to_clone|. Allocates new IDs for it.
- static DomStorageSession* CloneFrom(DomStorageContext* context,
- int64 namepace_id_to_clone);
-
- private:
- friend class base::RefCountedThreadSafe<DomStorageSession>;
-
- DomStorageSession(DomStorageContext* context,
- int64 namespace_id,
- const std::string& persistent_namespace_id);
- ~DomStorageSession();
-
- scoped_refptr<DomStorageContext> context_;
- int64 namespace_id_;
- std::string persistent_namespace_id_;
- bool should_persist_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(DomStorageSession);
-};
-
-} // namespace dom_storage
-
-#endif // WEBKIT_BROWSER_DOM_STORAGE_DOM_STORAGE_SESSION_H_
« no previous file with comments | « webkit/browser/dom_storage/dom_storage_namespace.cc ('k') | webkit/browser/dom_storage/dom_storage_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698