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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual void setDOMStorageItem(ErrorString*, const RefPtr<InspectorObject>&
storageId, const String& key, const String& value); | 67 virtual void setDOMStorageItem(ErrorString*, const RefPtr<InspectorObject>&
storageId, const String& key, const String& value); |
68 virtual void removeDOMStorageItem(ErrorString*, const RefPtr<InspectorObject
>& storageId, const String& key); | 68 virtual void removeDOMStorageItem(ErrorString*, const RefPtr<InspectorObject
>& storageId, const String& key); |
69 | 69 |
70 // Called from the injected script. | 70 // Called from the injected script. |
71 String storageId(Storage*); | 71 String storageId(Storage*); |
72 PassRefPtr<TypeBuilder::DOMStorage::StorageId> storageId(SecurityOrigin*, bo
ol isLocalStorage); | 72 PassRefPtr<TypeBuilder::DOMStorage::StorageId> storageId(SecurityOrigin*, bo
ol isLocalStorage); |
73 | 73 |
74 // Called from InspectorInstrumentation | 74 // Called from InspectorInstrumentation |
75 void didDispatchDOMStorageEvent(const String& key, const String& oldValue, c
onst String& newValue, StorageType, SecurityOrigin*, Page*); | 75 void didDispatchDOMStorageEvent(const String& key, const String& oldValue, c
onst String& newValue, StorageType, SecurityOrigin*, Page*); |
76 | 76 |
77 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
78 | |
79 private: | 77 private: |
80 | 78 |
81 InspectorDOMStorageAgent(InstrumentingAgents*, InspectorPageAgent*, Inspecto
rCompositeState*); | 79 InspectorDOMStorageAgent(InstrumentingAgents*, InspectorPageAgent*, Inspecto
rCompositeState*); |
82 | 80 |
83 bool isEnabled() const; | 81 bool isEnabled() const; |
84 PassRefPtr<StorageArea> findStorageArea(ErrorString*, const RefPtr<Inspector
Object>&, Frame*&); | 82 PassRefPtr<StorageArea> findStorageArea(ErrorString*, const RefPtr<Inspector
Object>&, Frame*&); |
85 | 83 |
86 InspectorPageAgent* m_pageAgent; | 84 InspectorPageAgent* m_pageAgent; |
87 InspectorFrontend* m_frontend; | 85 InspectorFrontend* m_frontend; |
88 }; | 86 }; |
89 | 87 |
90 } // namespace WebCore | 88 } // namespace WebCore |
91 | 89 |
92 #endif // !defined(InspectorDOMStorageAgent_h) | 90 #endif // !defined(InspectorDOMStorageAgent_h) |
OLD | NEW |