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

Unified Diff: content/public/browser/session_storage_namespace.h

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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: content/public/browser/session_storage_namespace.h
diff --git a/content/public/browser/session_storage_namespace.h b/content/public/browser/session_storage_namespace.h
index 6c28a408acbacec0a8b886978e3363ca0a5d85b6..b869f14a60b94c6f40f89ef92760b53e00d25dff 100644
--- a/content/public/browser/session_storage_namespace.h
+++ b/content/public/browser/session_storage_namespace.h
@@ -9,14 +9,23 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
namespace content {
+class DOMStorageContext;
+
// This is a ref-counted class that represents a SessionStorageNamespace.
// On destruction it ensures that the storage namespace is destroyed.
class SessionStorageNamespace
: public base::RefCountedThreadSafe<SessionStorageNamespace> {
public:
+ // Constructs a SessionStorageNamespace by cloning |namespace_to_clone|.
+ // |namespace_to_clone| must belong to |context|.
+ CONTENT_EXPORT static SessionStorageNamespace* Clone(
+ DOMStorageContext* context,
+ SessionStorageNamespace* namespace_to_clone);
+
// Returns the ID of the |SessionStorageNamespace|. The ID is unique among all
// SessionStorageNamespace objects, but not unique across browser runs.
virtual int64 id() const = 0;

Powered by Google App Engine
This is Rietveld 408576698