OLD | NEW |
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 #ifndef CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // This is a ref-counted class that represents a SessionStorageNamespace. | 15 // This is a ref-counted class that represents a SessionStorageNamespace. |
17 // On destruction it ensures that the storage namespace is destroyed. | 16 // On destruction it ensures that the storage namespace is destroyed. |
(...skipping 13 matching lines...) Expand all Loading... |
31 virtual void SetShouldPersist(bool should_persist) = 0; | 30 virtual void SetShouldPersist(bool should_persist) = 0; |
32 | 31 |
33 protected: | 32 protected: |
34 friend class base::RefCountedThreadSafe<SessionStorageNamespace>; | 33 friend class base::RefCountedThreadSafe<SessionStorageNamespace>; |
35 virtual ~SessionStorageNamespace() {} | 34 virtual ~SessionStorageNamespace() {} |
36 }; | 35 }; |
37 | 36 |
38 } // namespace content | 37 } // namespace content |
39 | 38 |
40 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ | 39 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ |
OLD | NEW |