OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Google Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "core/storage/StorageArea.h" | 29 #include "core/storage/StorageArea.h" |
30 #include "core/storage/StorageNamespace.h" | 30 #include "core/storage/StorageNamespace.h" |
31 | 31 |
32 namespace blink { class WebStorageNamespace; } | 32 namespace blink { class WebStorageNamespace; } |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 // Instances of StorageNamespaceProxy are only used to interact with | 36 // Instances of StorageNamespaceProxy are only used to interact with |
37 // SessionStorage, never LocalStorage. | 37 // SessionStorage, never LocalStorage. |
38 class StorageNamespaceProxy : public StorageNamespace { | 38 class StorageNamespaceProxy FINAL : public StorageNamespace { |
39 public: | 39 public: |
40 explicit StorageNamespaceProxy(PassOwnPtr<blink::WebStorageNamespace>); | 40 explicit StorageNamespaceProxy(PassOwnPtr<blink::WebStorageNamespace>); |
41 virtual ~StorageNamespaceProxy(); | 41 virtual ~StorageNamespaceProxy(); |
42 virtual PassOwnPtr<StorageArea> storageArea(SecurityOrigin*); | 42 virtual PassOwnPtr<StorageArea> storageArea(SecurityOrigin*) OVERRIDE; |
43 | 43 |
44 bool isSameNamespace(const blink::WebStorageNamespace&); | 44 bool isSameNamespace(const blink::WebStorageNamespace&); |
45 | 45 |
46 private: | 46 private: |
47 OwnPtr<blink::WebStorageNamespace> m_storageNamespace; | 47 OwnPtr<blink::WebStorageNamespace> m_storageNamespace; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace WebCore | 50 } // namespace WebCore |
51 | 51 |
52 #endif // StorageNamespaceProxy_h | 52 #endif // StorageNamespaceProxy_h |
OLD | NEW |