| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual void restore() override; | 58 virtual void restore() override; |
| 59 | 59 |
| 60 // Called from the front-end. | 60 // Called from the front-end. |
| 61 virtual void enable(ErrorString*) override; | 61 virtual void enable(ErrorString*) override; |
| 62 virtual void disable(ErrorString*) override; | 62 virtual void disable(ErrorString*) override; |
| 63 virtual void getDOMStorageItems(ErrorString*, const RefPtr<JSONObject>& stor
ageId, RefPtr<TypeBuilder::Array<TypeBuilder::Array<String> > >& items) override
; | 63 virtual void getDOMStorageItems(ErrorString*, const RefPtr<JSONObject>& stor
ageId, RefPtr<TypeBuilder::Array<TypeBuilder::Array<String> > >& items) override
; |
| 64 virtual void setDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& stora
geId, const String& key, const String& value) override; | 64 virtual void setDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& stora
geId, const String& key, const String& value) override; |
| 65 virtual void removeDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& st
orageId, const String& key) override; | 65 virtual void removeDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& st
orageId, const String& key) override; |
| 66 | 66 |
| 67 // Called from InspectorInstrumentation | 67 // Called from InspectorInstrumentation |
| 68 void didDispatchDOMStorageEvent(const String& key, const String& oldValue, c
onst String& newValue, StorageType, SecurityOrigin*); | 68 void didDispatchDOMStorageEvent(LocalFrame*, const String& key, const String
& oldValue, const String& newValue, StorageType, SecurityOrigin*); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 | 71 |
| 72 explicit InspectorDOMStorageAgent(InspectorPageAgent*); | 72 explicit InspectorDOMStorageAgent(InspectorPageAgent*); |
| 73 | 73 |
| 74 bool isEnabled() const; | 74 bool isEnabled() const; |
| 75 PassOwnPtrWillBeRawPtr<StorageArea> findStorageArea(ErrorString*, const RefP
tr<JSONObject>&, LocalFrame*&); | 75 PassOwnPtrWillBeRawPtr<StorageArea> findStorageArea(ErrorString*, const RefP
tr<JSONObject>&, LocalFrame*&); |
| 76 PassRefPtr<TypeBuilder::DOMStorage::StorageId> storageId(SecurityOrigin*, bo
ol isLocalStorage); | 76 PassRefPtr<TypeBuilder::DOMStorage::StorageId> storageId(SecurityOrigin*, bo
ol isLocalStorage); |
| 77 | 77 |
| 78 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 78 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 79 InspectorFrontend::DOMStorage* m_frontend; | 79 InspectorFrontend::DOMStorage* m_frontend; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| 83 | 83 |
| 84 #endif // !defined(InspectorDOMStorageAgent_h) | 84 #endif // !defined(InspectorDOMStorageAgent_h) |
| OLD | NEW |