| 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_webstoragearea_impl.h" | 5 #include "chrome/renderer/renderer_webstoragearea_impl.h" |
| 6 | 6 |
| 7 #include "chrome/common/dom_storage_messages.h" | |
| 8 #include "chrome/renderer/render_thread.h" | 7 #include "chrome/renderer/render_thread.h" |
| 9 #include "chrome/renderer/render_view.h" | 8 #include "chrome/renderer/render_view.h" |
| 9 #include "content/common/dom_storage_messages.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 13 | 13 |
| 14 using WebKit::WebFrame; | 14 using WebKit::WebFrame; |
| 15 using WebKit::WebString; | 15 using WebKit::WebString; |
| 16 using WebKit::WebURL; | 16 using WebKit::WebURL; |
| 17 using WebKit::WebView; | 17 using WebKit::WebView; |
| 18 | 18 |
| 19 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( | 19 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 RenderThread::current()->Send( | 74 RenderThread::current()->Send( |
| 75 new DOMStorageHostMsg_RemoveItem(storage_area_id_, key, url, &old_value)); | 75 new DOMStorageHostMsg_RemoveItem(storage_area_id_, key, url, &old_value)); |
| 76 old_value_webkit = old_value; | 76 old_value_webkit = old_value; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void RendererWebStorageAreaImpl::clear( | 79 void RendererWebStorageAreaImpl::clear( |
| 80 const WebURL& url, bool& cleared_something) { | 80 const WebURL& url, bool& cleared_something) { |
| 81 RenderThread::current()->Send( | 81 RenderThread::current()->Send( |
| 82 new DOMStorageHostMsg_Clear(storage_area_id_, url, &cleared_something)); | 82 new DOMStorageHostMsg_Clear(storage_area_id_, url, &cleared_something)); |
| 83 } | 83 } |
| OLD | NEW |