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

Side by Side Diff: chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h

Issue 255050: Quota support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Message Handlers. 44 // Message Handlers.
45 void OnNamespaceId(DOMStorageType storage_type, IPC::Message* reply_msg); 45 void OnNamespaceId(DOMStorageType storage_type, IPC::Message* reply_msg);
46 void OnCloneNamespaceId(int64 namespace_id, IPC::Message* reply_msg); 46 void OnCloneNamespaceId(int64 namespace_id, IPC::Message* reply_msg);
47 void OnStorageAreaId(int64 namespace_id, const string16& origin, 47 void OnStorageAreaId(int64 namespace_id, const string16& origin,
48 IPC::Message* reply_msg); 48 IPC::Message* reply_msg);
49 void OnLength(int64 storage_area_id, IPC::Message* reply_msg); 49 void OnLength(int64 storage_area_id, IPC::Message* reply_msg);
50 void OnKey(int64 storage_area_id, unsigned index, IPC::Message* reply_msg); 50 void OnKey(int64 storage_area_id, unsigned index, IPC::Message* reply_msg);
51 void OnGetItem(int64 storage_area_id, const string16& key, 51 void OnGetItem(int64 storage_area_id, const string16& key,
52 IPC::Message* reply_msg); 52 IPC::Message* reply_msg);
53 void OnSetItem(int64 storage_area_id, const string16& key, 53 void OnSetItem(int64 storage_area_id, const string16& key,
54 const string16& value); 54 const string16& value, IPC::Message* reply_msg);
55 void OnRemoveItem(int64 storage_area_id, const string16& key); 55 void OnRemoveItem(int64 storage_area_id, const string16& key);
56 void OnClear(int64 storage_area_id); 56 void OnClear(int64 storage_area_id);
57 57
58 // A shortcut for accessing our context. 58 // A shortcut for accessing our context.
59 DOMStorageContext* Context() { 59 DOMStorageContext* Context() {
60 DCHECK(!shutdown_); 60 DCHECK(!shutdown_);
61 return webkit_context_->GetDOMStorageContext(); 61 return webkit_context_->GetDOMStorageContext();
62 } 62 }
63 63
64 // Data shared between renderer processes with the same profile. 64 // Data shared between renderer processes with the same profile.
(...skipping 16 matching lines...) Expand all
81 81
82 // This is set once the Shutdown routine runs on the WebKit thread. Once 82 // This is set once the Shutdown routine runs on the WebKit thread. Once
83 // set, we should not process any more messages because storage_area_map_ 83 // set, we should not process any more messages because storage_area_map_
84 // and storage_namespace_map_ contain pointers to deleted objects. 84 // and storage_namespace_map_ contain pointers to deleted objects.
85 bool shutdown_; 85 bool shutdown_;
86 86
87 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageDispatcherHost); 87 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageDispatcherHost);
88 }; 88 };
89 89
90 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ 90 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698