 Chromium Code Reviews
 Chromium Code Reviews Issue 10162015:
  Pull domstorage specifics out of RenderThreadImpl into DomStorageDispatcher  (Closed) 
  Base URL: svn://chrome-svn/chrome/trunk/src/
    
  
    Issue 10162015:
  Pull domstorage specifics out of RenderThreadImpl into DomStorageDispatcher  (Closed) 
  Base URL: svn://chrome-svn/chrome/trunk/src/| OLD | NEW | 
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
| 
ericu
2012/05/09 21:28:46
Update copyright dates.
 | |
| 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 #ifndef CONTENT_RENDERER_RENDERER_WEBSTORAGEAREA_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ | 
| 6 #define CONTENT_RENDERER_RENDERER_WEBSTORAGEAREA_IMPL_H_ | 6 #define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" | 
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" | 
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 
| 12 | 12 | 
| 13 class RendererWebStorageAreaImpl : public WebKit::WebStorageArea { | 13 class GURL; | 
| 14 | |
| 15 class WebStorageAreaImpl : public WebKit::WebStorageArea { | |
| 14 public: | 16 public: | 
| 15 static RendererWebStorageAreaImpl* FromConnectionId(int id); | 17 static WebStorageAreaImpl* FromConnectionId(int id); | 
| 16 | 18 | 
| 17 RendererWebStorageAreaImpl(int64 namespace_id, | 19 WebStorageAreaImpl(int64 namespace_id, const GURL& origin); | 
| 18 const WebKit::WebString& origin); | 20 virtual ~WebStorageAreaImpl(); | 
| 19 virtual ~RendererWebStorageAreaImpl(); | |
| 20 | 21 | 
| 21 // See WebStorageArea.h for documentation on these functions. | 22 // See WebStorageArea.h for documentation on these functions. | 
| 22 virtual unsigned length(); | 23 virtual unsigned length(); | 
| 23 virtual WebKit::WebString key(unsigned index); | 24 virtual WebKit::WebString key(unsigned index); | 
| 24 virtual WebKit::WebString getItem(const WebKit::WebString& key); | 25 virtual WebKit::WebString getItem(const WebKit::WebString& key); | 
| 25 virtual void setItem( | 26 virtual void setItem( | 
| 26 const WebKit::WebString& key, const WebKit::WebString& value, | 27 const WebKit::WebString& key, const WebKit::WebString& value, | 
| 27 const WebKit::WebURL& url, WebStorageArea::Result& result, | 28 const WebKit::WebURL& url, WebStorageArea::Result& result, | 
| 28 WebKit::WebString& old_value); | 29 WebKit::WebString& old_value); | 
| 29 virtual void removeItem( | 30 virtual void removeItem( | 
| 30 const WebKit::WebString& key, const WebKit::WebURL& url, | 31 const WebKit::WebString& key, const WebKit::WebURL& url, | 
| 31 WebKit::WebString& old_value); | 32 WebKit::WebString& old_value); | 
| 32 virtual void clear(const WebKit::WebURL& url, bool& cleared_something); | 33 virtual void clear(const WebKit::WebURL& url, bool& cleared_something); | 
| 33 | 34 | 
| 34 private: | 35 private: | 
| 35 int connection_id_; | 36 int connection_id_; | 
| 36 }; | 37 }; | 
| 37 | 38 | 
| 38 #endif // CONTENT_RENDERER_RENDERER_WEBSTORAGEAREA_IMPL_H_ | 39 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ | 
| OLD | NEW |