| 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 "content/common/dom_storage_messages.h" | 7 #include "content/common/dom_storage_messages.h" |
| 8 #include "content/renderer/render_thread_impl.h" | 8 #include "content/renderer/render_thread_impl.h" |
| 9 #include "content/renderer/render_view.h" | |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 12 | 11 |
| 13 using WebKit::WebStorageNamespace; | 12 using WebKit::WebStorageNamespace; |
| 14 using WebKit::WebString; | 13 using WebKit::WebString; |
| 15 using WebKit::WebURL; | 14 using WebKit::WebURL; |
| 16 | 15 |
| 17 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( | 16 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( |
| 18 int64 namespace_id, const WebString& origin) { | 17 int64 namespace_id, const WebString& origin) { |
| 19 RenderThreadImpl::current()->Send( | 18 RenderThreadImpl::current()->Send( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 RenderThreadImpl::current()->Send( | 64 RenderThreadImpl::current()->Send( |
| 66 new DOMStorageHostMsg_RemoveItem(storage_area_id_, key, url, &old_value)); | 65 new DOMStorageHostMsg_RemoveItem(storage_area_id_, key, url, &old_value)); |
| 67 old_value_webkit = old_value; | 66 old_value_webkit = old_value; |
| 68 } | 67 } |
| 69 | 68 |
| 70 void RendererWebStorageAreaImpl::clear( | 69 void RendererWebStorageAreaImpl::clear( |
| 71 const WebURL& url, bool& cleared_something) { | 70 const WebURL& url, bool& cleared_something) { |
| 72 RenderThreadImpl::current()->Send( | 71 RenderThreadImpl::current()->Send( |
| 73 new DOMStorageHostMsg_Clear(storage_area_id_, url, &cleared_something)); | 72 new DOMStorageHostMsg_Clear(storage_area_id_, url, &cleared_something)); |
| 74 } | 73 } |
| OLD | NEW |