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

Side by Side Diff: webkit/dom_storage/dom_storage_context.h

Issue 10201010: Switch chrome and chromiumDRT over to using the new WebKit API for dispatching events. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 public: 60 public:
61 struct UsageInfo { 61 struct UsageInfo {
62 GURL origin; 62 GURL origin;
63 size_t data_size; 63 size_t data_size;
64 base::Time last_modified; 64 base::Time last_modified;
65 65
66 UsageInfo(); 66 UsageInfo();
67 ~UsageInfo(); 67 ~UsageInfo();
68 }; 68 };
69 69
70 // An interface for observing LocalStorage events on the 70 // An interface for observing Local and Session Storage events on the
71 // background thread. 71 // background thread.
72 class EventObserver { 72 class EventObserver {
73 public: 73 public:
74 virtual void OnDomStorageItemSet( 74 virtual void OnDomStorageItemSet(
75 const DomStorageArea* area, 75 const DomStorageArea* area,
76 const string16& key, 76 const string16& key,
77 const string16& new_value, 77 const string16& new_value,
78 const NullableString16& old_value, // may be null on initial insert 78 const NullableString16& old_value, // may be null on initial insert
79 const GURL& page_url) = 0; 79 const GURL& page_url) = 0;
80 virtual void OnDomStorageItemRemoved( 80 virtual void OnDomStorageItemRemoved(
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 bool is_shutdown_; 193 bool is_shutdown_;
194 bool clear_local_state_; 194 bool clear_local_state_;
195 bool save_session_state_; 195 bool save_session_state_;
196 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 196 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
197 }; 197 };
198 198
199 } // namespace dom_storage 199 } // namespace dom_storage
200 200
201 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 201 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_webstoragenamespace_impl.cc ('k') | webkit/dom_storage/dom_storage_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698