OLD | NEW |
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 #include "content/renderer/renderer_webstoragearea_impl.h" | 5 #include "content/renderer/renderer_webstoragearea_impl.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "content/common/dom_storage_messages.h" | 9 #include "content/common/dom_storage_messages.h" |
10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
13 | 13 |
14 using WebKit::WebStorageNamespace; | 14 using WebKit::WebStorageNamespace; |
15 using WebKit::WebString; | 15 using WebKit::WebString; |
16 using WebKit::WebURL; | 16 using WebKit::WebURL; |
17 | 17 |
18 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( | 18 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( |
19 int64 namespace_id, const WebString& origin) { | 19 int64 namespace_id, const WebString& origin) { |
20 RenderThreadImpl::current()->Send( | 20 RenderThreadImpl::current()->Send( |
21 new DOMStorageHostMsg_StorageAreaId(namespace_id, origin, | 21 new DOMStorageHostMsg_StorageAreaId(namespace_id, origin, |
22 &storage_area_id_)); | 22 &storage_area_id_)); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 RenderThreadImpl::current()->Send( | 80 RenderThreadImpl::current()->Send( |
81 new DOMStorageHostMsg_RemoveItem(storage_area_id_, key, url, &old_value)); | 81 new DOMStorageHostMsg_RemoveItem(storage_area_id_, key, url, &old_value)); |
82 old_value_webkit = old_value; | 82 old_value_webkit = old_value; |
83 } | 83 } |
84 | 84 |
85 void RendererWebStorageAreaImpl::clear( | 85 void RendererWebStorageAreaImpl::clear( |
86 const WebURL& url, bool& cleared_something) { | 86 const WebURL& url, bool& cleared_something) { |
87 RenderThreadImpl::current()->Send( | 87 RenderThreadImpl::current()->Send( |
88 new DOMStorageHostMsg_Clear(storage_area_id_, url, &cleared_something)); | 88 new DOMStorageHostMsg_Clear(storage_area_id_, url, &cleared_something)); |
89 } | 89 } |
OLD | NEW |