Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: chrome/renderer/renderer_webstoragearea_impl.h

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_RENDERER_RENDERER_WEBSTORAGEAREA_IMPL_H_ 5 #ifndef CHROME_RENDERER_RENDERER_WEBSTORAGEAREA_IMPL_H_
6 #define CHROME_RENDERER_RENDERER_WEBSTORAGEAREA_IMPL_H_ 6 #define CHROME_RENDERER_RENDERER_WEBSTORAGEAREA_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "webkit/api/public/WebStorageArea.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h"
11 #include "webkit/api/public/WebString.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
12 12
13 class RendererWebStorageAreaImpl : public WebKit::WebStorageArea { 13 class RendererWebStorageAreaImpl : public WebKit::WebStorageArea {
14 public: 14 public:
15 RendererWebStorageAreaImpl(int64 namespace_id, 15 RendererWebStorageAreaImpl(int64 namespace_id,
16 const WebKit::WebString& origin); 16 const WebKit::WebString& origin);
17 virtual ~RendererWebStorageAreaImpl(); 17 virtual ~RendererWebStorageAreaImpl();
18 18
19 // See WebStorageArea.h for documentation on these functions. 19 // See WebStorageArea.h for documentation on these functions.
20 virtual unsigned length(); 20 virtual unsigned length();
21 virtual WebKit::WebString key(unsigned index); 21 virtual WebKit::WebString key(unsigned index);
22 virtual WebKit::WebString getItem(const WebKit::WebString& key); 22 virtual WebKit::WebString getItem(const WebKit::WebString& key);
23 virtual void setItem( 23 virtual void setItem(
24 const WebKit::WebString& key, const WebKit::WebString& value, 24 const WebKit::WebString& key, const WebKit::WebString& value,
25 const WebKit::WebURL& url, bool& quota_exception); 25 const WebKit::WebURL& url, bool& quota_exception);
26 virtual void removeItem(const WebKit::WebString& key, 26 virtual void removeItem(const WebKit::WebString& key,
27 const WebKit::WebURL& url); 27 const WebKit::WebURL& url);
28 virtual void clear(const WebKit::WebURL& url); 28 virtual void clear(const WebKit::WebURL& url);
29 29
30 private: 30 private:
31 // The ID we use for all IPC. 31 // The ID we use for all IPC.
32 int64 storage_area_id_; 32 int64 storage_area_id_;
33 }; 33 };
34 34
35 #endif // CHROME_RENDERER_WEBSTORAGEAREA_IMPL_H_ 35 #endif // CHROME_RENDERER_WEBSTORAGEAREA_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.cc ('k') | chrome/renderer/renderer_webstoragearea_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698