| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/tools/test_shell/simple_dom_storage_system.h" | 5 #include "webkit/tools/test_shell/simple_dom_storage_system.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebStorageArea.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebStorageArea.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 base::AutoReset<AreaImpl*> auto_reset(&parent_->area_being_processed_, this); | 187 base::AutoReset<AreaImpl*> auto_reset(&parent_->area_being_processed_, this); |
| 188 Host()->ClearArea(connection_id_, pageUrl); | 188 Host()->ClearArea(connection_id_, pageUrl); |
| 189 } | 189 } |
| 190 | 190 |
| 191 // SimpleDomStorageSystem ----------------------------- | 191 // SimpleDomStorageSystem ----------------------------- |
| 192 | 192 |
| 193 SimpleDomStorageSystem* SimpleDomStorageSystem::g_instance_; | 193 SimpleDomStorageSystem* SimpleDomStorageSystem::g_instance_; |
| 194 | 194 |
| 195 SimpleDomStorageSystem::SimpleDomStorageSystem() | 195 SimpleDomStorageSystem::SimpleDomStorageSystem() |
| 196 : weak_factory_(this), | 196 : weak_factory_(this), |
| 197 context_(new DomStorageContext(FilePath(), FilePath(), NULL, NULL)), | 197 context_(new DomStorageContext(base::FilePath(), base::FilePath(), |
| 198 NULL, NULL)), |
| 198 host_(new DomStorageHost(context_)), | 199 host_(new DomStorageHost(context_)), |
| 199 area_being_processed_(NULL), | 200 area_being_processed_(NULL), |
| 200 next_connection_id_(1) { | 201 next_connection_id_(1) { |
| 201 DCHECK(!g_instance_); | 202 DCHECK(!g_instance_); |
| 202 g_instance_ = this; | 203 g_instance_ = this; |
| 203 context_->AddEventObserver(this); | 204 context_->AddEventObserver(this); |
| 204 } | 205 } |
| 205 | 206 |
| 206 SimpleDomStorageSystem::~SimpleDomStorageSystem() { | 207 SimpleDomStorageSystem::~SimpleDomStorageSystem() { |
| 207 g_instance_ = NULL; | 208 g_instance_ = NULL; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 key, | 275 key, |
| 275 old_value, | 276 old_value, |
| 276 new_value, | 277 new_value, |
| 277 area->origin(), | 278 area->origin(), |
| 278 page_url, | 279 page_url, |
| 279 session_namespace_for_event_dispatch, | 280 session_namespace_for_event_dispatch, |
| 280 area_being_processed_, | 281 area_being_processed_, |
| 281 true /* originatedInProcess */); | 282 true /* originatedInProcess */); |
| 282 } | 283 } |
| 283 } | 284 } |
| OLD | NEW |