OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "content/renderer/renderer_webstoragenamespace_impl.h" | 5 #include "content/renderer/renderer_webstoragenamespace_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/renderer/renderer_webstoragearea_impl.h" | 8 #include "content/renderer/renderer_webstoragearea_impl.h" |
| 9 #include "webkit/dom_storage/dom_storage_types.h" |
9 | 10 |
10 using WebKit::WebStorageArea; | 11 using WebKit::WebStorageArea; |
11 using WebKit::WebStorageNamespace; | 12 using WebKit::WebStorageNamespace; |
12 using WebKit::WebString; | 13 using WebKit::WebString; |
13 | 14 |
14 RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl() | 15 RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl() |
15 : namespace_id_(dom_storage::kLocalStorageNamespaceId) { | 16 : namespace_id_(dom_storage::kLocalStorageNamespaceId) { |
16 } | 17 } |
17 | 18 |
18 RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl( | 19 RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl( |
(...skipping 18 matching lines...) Expand all Loading... |
37 // By returning NULL, we're telling WebKit to lazily fetch it the next time | 38 // By returning NULL, we're telling WebKit to lazily fetch it the next time |
38 // session storage is used. In the WebViewClient::createView, we do the | 39 // session storage is used. In the WebViewClient::createView, we do the |
39 // book-keeping necessary to make it a true copy-on-write despite not doing | 40 // book-keeping necessary to make it a true copy-on-write despite not doing |
40 // anything here, now. | 41 // anything here, now. |
41 return NULL; | 42 return NULL; |
42 } | 43 } |
43 | 44 |
44 void RendererWebStorageNamespaceImpl::close() { | 45 void RendererWebStorageNamespaceImpl::close() { |
45 // TOOD(michaeln): remove this deprecated method. | 46 // TOOD(michaeln): remove this deprecated method. |
46 } | 47 } |
OLD | NEW |