| OLD | NEW |
| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 explicit InspectorDOMStorageAgent(Page*); | 62 explicit InspectorDOMStorageAgent(Page*); |
| 63 | 63 |
| 64 // InspectorBaseAgent overrides. | 64 // InspectorBaseAgent overrides. |
| 65 void restore() override; | 65 void restore() override; |
| 66 | 66 |
| 67 // protocol::Dispatcher::DOMStorageCommandHandler overrides. | 67 // protocol::Dispatcher::DOMStorageCommandHandler overrides. |
| 68 Response enable() override; | 68 Response enable() override; |
| 69 Response disable() override; | 69 Response disable() override; |
| 70 Response clear(std::unique_ptr<protocol::DOMStorage::StorageId>) override; |
| 71 |
| 70 Response getDOMStorageItems( | 72 Response getDOMStorageItems( |
| 71 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId, | 73 std::unique_ptr<protocol::DOMStorage::StorageId>, |
| 72 std::unique_ptr<protocol::Array<protocol::Array<String>>>* out_entries) | 74 std::unique_ptr<protocol::Array<protocol::Array<String>>>* entries) |
| 73 override; | 75 override; |
| 74 Response setDOMStorageItem( | 76 Response setDOMStorageItem(std::unique_ptr<protocol::DOMStorage::StorageId>, |
| 75 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId, | 77 const String& key, |
| 76 const String& in_key, | 78 const String& value) override; |
| 77 const String& in_value) override; | |
| 78 Response removeDOMStorageItem( | 79 Response removeDOMStorageItem( |
| 79 std::unique_ptr<protocol::DOMStorage::StorageId> in_storageId, | 80 std::unique_ptr<protocol::DOMStorage::StorageId>, |
| 80 const String& in_key) override; | 81 const String& key) override; |
| 81 | 82 |
| 82 Response findStorageArea(std::unique_ptr<protocol::DOMStorage::StorageId>, | 83 Response findStorageArea(std::unique_ptr<protocol::DOMStorage::StorageId>, |
| 83 LocalFrame*&, | 84 LocalFrame*&, |
| 84 StorageArea*&); | 85 StorageArea*&); |
| 85 std::unique_ptr<protocol::DOMStorage::StorageId> storageId( | 86 std::unique_ptr<protocol::DOMStorage::StorageId> storageId( |
| 86 SecurityOrigin*, | 87 SecurityOrigin*, |
| 87 bool isLocalStorage); | 88 bool isLocalStorage); |
| 88 | 89 |
| 89 Member<Page> m_page; | 90 Member<Page> m_page; |
| 90 bool m_isEnabled; | 91 bool m_isEnabled; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace blink | 94 } // namespace blink |
| 94 | 95 |
| 95 #endif // !defined(InspectorDOMStorageAgent_h) | 96 #endif // !defined(InspectorDOMStorageAgent_h) |
| OLD | NEW |