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

Side by Side Diff: third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.h

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 ~InspectorDOMStorageAgent() override; 55 ~InspectorDOMStorageAgent() override;
56 DECLARE_VIRTUAL_TRACE(); 56 DECLARE_VIRTUAL_TRACE();
57 57
58 void didDispatchDOMStorageEvent(const String& key, const String& oldValue, c onst String& newValue, StorageType, SecurityOrigin*); 58 void didDispatchDOMStorageEvent(const String& key, const String& oldValue, c onst String& newValue, StorageType, SecurityOrigin*);
59 59
60 private: 60 private:
61 explicit InspectorDOMStorageAgent(Page*); 61 explicit InspectorDOMStorageAgent(Page*);
62 62
63 // InspectorBaseAgent overrides. 63 // InspectorBaseAgent overrides.
64 void disable(ErrorString*) override;
65 void restore() override; 64 void restore() override;
66 65
67 // protocol::Dispatcher::DOMStorageCommandHandler overrides. 66 // protocol::Dispatcher::DOMStorageCommandHandler overrides.
68 void enable(ErrorString*) override; 67 void enable(ErrorString*) override;
69 void getDOMStorageItems(ErrorString*, const RefPtr<JSONObject>& storageId, R efPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Array<String>>>& items ) override; 68 void disable(ErrorString*) override;
70 void setDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& storageId, co nst String& key, const String& value) override; 69 void getDOMStorageItems(ErrorString*, PassOwnPtr<protocol::DOMStorage::Stora geId> in_storageId, OwnPtr<protocol::Array<protocol::Array<String>>>* out_entrie s) override;
71 void removeDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& storageId, const String& key) override; 70 void setDOMStorageItem(ErrorString*, PassOwnPtr<protocol::DOMStorage::Storag eId> in_storageId, const String& in_key, const String& in_value) override;
71 void removeDOMStorageItem(ErrorString*, PassOwnPtr<protocol::DOMStorage::Sto rageId> in_storageId, const String& in_key) override;
72 72
73 StorageArea* findStorageArea(ErrorString*, const RefPtr<JSONObject>&, LocalF rame*&); 73 StorageArea* findStorageArea(ErrorString*, PassOwnPtr<protocol::DOMStorage:: StorageId>, LocalFrame*&);
74 PassRefPtr<protocol::TypeBuilder::DOMStorage::StorageId> storageId(SecurityO rigin*, bool isLocalStorage); 74 PassOwnPtr<protocol::DOMStorage::StorageId> storageId(SecurityOrigin*, bool isLocalStorage);
75 75
76 RawPtrWillBeMember<Page> m_page; 76 RawPtrWillBeMember<Page> m_page;
77 bool m_isEnabled; 77 bool m_isEnabled;
78 }; 78 };
79 79
80 } // namespace blink 80 } // namespace blink
81 81
82 #endif // !defined(InspectorDOMStorageAgent_h) 82 #endif // !defined(InspectorDOMStorageAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698