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 "chrome/renderer/renderer_webstoragenamespace_impl.h" | 5 #include "content/renderer/renderer_webstoragenamespace_impl.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 #include "chrome/renderer/render_thread.h" | 8 #include "chrome/renderer/render_thread.h" |
9 #include "chrome/renderer/renderer_webstoragearea_impl.h" | 9 #include "content/renderer/renderer_webstoragearea_impl.h" |
10 | 10 |
11 using WebKit::WebStorageArea; | 11 using WebKit::WebStorageArea; |
12 using WebKit::WebStorageNamespace; | 12 using WebKit::WebStorageNamespace; |
13 using WebKit::WebString; | 13 using WebKit::WebString; |
14 | 14 |
15 RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl( | 15 RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl( |
16 DOMStorageType storage_type) | 16 DOMStorageType storage_type) |
17 : storage_type_(storage_type), | 17 : storage_type_(storage_type), |
18 namespace_id_(kLocalStorageNamespaceId) { | 18 namespace_id_(kLocalStorageNamespaceId) { |
19 DCHECK(storage_type == DOM_STORAGE_LOCAL); | 19 DCHECK(storage_type == DOM_STORAGE_LOCAL); |
(...skipping 23 matching lines...) Expand all Loading... |
43 // session storage is used. In the WebViewClient::createView, we do the | 43 // session storage is used. In the WebViewClient::createView, we do the |
44 // book-keeping necessary to make it a true copy-on-write despite not doing | 44 // book-keeping necessary to make it a true copy-on-write despite not doing |
45 // anything here, now. | 45 // anything here, now. |
46 return NULL; | 46 return NULL; |
47 } | 47 } |
48 | 48 |
49 void RendererWebStorageNamespaceImpl::close() { | 49 void RendererWebStorageNamespaceImpl::close() { |
50 // This is called only on LocalStorage namespaces when WebKit thinks its | 50 // This is called only on LocalStorage namespaces when WebKit thinks its |
51 // shutting down. This has no impact on Chromium. | 51 // shutting down. This has no impact on Chromium. |
52 } | 52 } |
OLD | NEW |