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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 if (it->second->isSameHostAndType(frame, isLocalStorage)) | 174 if (it->second->isSameHostAndType(frame, isLocalStorage)) |
175 return; | 175 return; |
176 } | 176 } |
177 | 177 |
178 RefPtr<Storage> domStorage = Storage::create(frame, storageArea); | 178 RefPtr<Storage> domStorage = Storage::create(frame, storageArea); |
179 RefPtr<InspectorDOMStorageResource> resource = InspectorDOMStorageResource::
create(domStorage.get(), isLocalStorage, frame); | 179 RefPtr<InspectorDOMStorageResource> resource = InspectorDOMStorageResource::
create(domStorage.get(), isLocalStorage, frame); |
180 | 180 |
181 m_resources.set(resource->id(), resource); | 181 m_resources.set(resource->id(), resource); |
182 | 182 |
183 // Resources are only bound while visible. | 183 // Resources are only bound while visible. |
184 if (m_frontend) | 184 if (m_enabled) |
185 resource->bind(m_frontend); | 185 resource->bind(m_frontend); |
186 } | 186 } |
187 | 187 |
188 void InspectorDOMStorageAgent::clearResources() | 188 void InspectorDOMStorageAgent::clearResources() |
189 { | 189 { |
190 m_resources.clear(); | 190 m_resources.clear(); |
191 } | 191 } |
192 | 192 |
193 | 193 |
194 } // namespace WebCore | 194 } // namespace WebCore |
195 | 195 |
196 #endif // ENABLE(INSPECTOR) && ENABLE(DOM_STORE) | 196 #endif // ENABLE(INSPECTOR) && ENABLE(DOM_STORE) |
OLD | NEW |