OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // 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/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 "webkit/api/public/WebURL.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
10 | 10 |
11 using WebKit::WebString; | 11 using WebKit::WebString; |
12 using WebKit::WebURL; | 12 using WebKit::WebURL; |
13 | 13 |
14 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( | 14 RendererWebStorageAreaImpl::RendererWebStorageAreaImpl( |
15 int64 namespace_id, const WebString& origin) { | 15 int64 namespace_id, const WebString& origin) { |
16 RenderThread::current()->Send( | 16 RenderThread::current()->Send( |
17 new ViewHostMsg_DOMStorageStorageAreaId(namespace_id, origin, | 17 new ViewHostMsg_DOMStorageStorageAreaId(namespace_id, origin, |
18 &storage_area_id_)); | 18 &storage_area_id_)); |
19 } | 19 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void RendererWebStorageAreaImpl::removeItem(const WebString& key, | 53 void RendererWebStorageAreaImpl::removeItem(const WebString& key, |
54 const WebURL& url) { | 54 const WebURL& url) { |
55 RenderThread::current()->Send( | 55 RenderThread::current()->Send( |
56 new ViewHostMsg_DOMStorageRemoveItem(storage_area_id_, key, url)); | 56 new ViewHostMsg_DOMStorageRemoveItem(storage_area_id_, key, url)); |
57 } | 57 } |
58 | 58 |
59 void RendererWebStorageAreaImpl::clear(const WebURL& url) { | 59 void RendererWebStorageAreaImpl::clear(const WebURL& url) { |
60 RenderThread::current()->Send( | 60 RenderThread::current()->Send( |
61 new ViewHostMsg_DOMStorageClear(storage_area_id_, url)); | 61 new ViewHostMsg_DOMStorageClear(storage_area_id_, url)); |
62 } | 62 } |
OLD | NEW |