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

Side by Side Diff: content/browser/in_process_webkit/session_storage_namespace.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_SESSION_STORAGE_NAMESPACE_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_SESSION_STORAGE_NAMESPACE_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_SESSION_STORAGE_NAMESPACE_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_SESSION_STORAGE_NAMESPACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/common/content_export.h"
11 12
12 class WebKitContext; 13 class WebKitContext;
13 14
14 // This is a ref-counted class that represents a SessionStorageNamespace. 15 // This is a ref-counted class that represents a SessionStorageNamespace.
15 // On destruction it ensures that the storage namespace is destroyed. 16 // On destruction it ensures that the storage namespace is destroyed.
16 // NOTE: That if we're shutting down, we don't strictly need to do this, but 17 // NOTE: That if we're shutting down, we don't strictly need to do this, but
17 // it keeps valgrind happy. 18 // it keeps valgrind happy.
18 class SessionStorageNamespace 19 class SessionStorageNamespace
19 : public base::RefCountedThreadSafe<SessionStorageNamespace> { 20 : public base::RefCountedThreadSafe<SessionStorageNamespace> {
20 public: 21 public:
21 explicit SessionStorageNamespace(WebKitContext* context); 22 explicit SessionStorageNamespace(WebKitContext* context);
22 23
23 int64 id() const { return id_; } 24 int64 id() const { return id_; }
24 25
25 // The session storage namespace parameter allows multiple render views and 26 // The session storage namespace parameter allows multiple render views and
26 // tab contentses to share the same session storage (part of the WebStorage 27 // tab contentses to share the same session storage (part of the WebStorage
27 // spec) space. Passing in NULL simply allocates a new one which is often the 28 // spec) space. Passing in NULL simply allocates a new one which is often the
28 // correct thing to do (especially in tests. 29 // correct thing to do (especially in tests.
29 SessionStorageNamespace* Clone(); 30 SessionStorageNamespace* Clone();
30 31
31 private: 32 private:
32 SessionStorageNamespace(WebKitContext* webkit_context, int64 id); 33 SessionStorageNamespace(WebKitContext* webkit_context, int64 id);
33 34
34 friend class base::RefCountedThreadSafe<SessionStorageNamespace>; 35 friend class base::RefCountedThreadSafe<SessionStorageNamespace>;
35 ~SessionStorageNamespace(); 36 CONTENT_EXPORT ~SessionStorageNamespace();
36 37
37 scoped_refptr<WebKitContext> webkit_context_; 38 scoped_refptr<WebKitContext> webkit_context_;
38 39
39 // The session storage namespace id. 40 // The session storage namespace id.
40 int64 id_; 41 int64 id_;
41 42
42 DISALLOW_IMPLICIT_CONSTRUCTORS(SessionStorageNamespace); 43 DISALLOW_IMPLICIT_CONSTRUCTORS(SessionStorageNamespace);
43 }; 44 };
44 45
45 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_SESSION_STORAGE_NAMESPACE_H_ 46 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_SESSION_STORAGE_NAMESPACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698