Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: webkit/dom_storage/dom_storage_area.cc

Issue 9347056: Fix up SequencedWorkerPool in preparation for making it a TaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address dom_storage comments Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/dom_storage/dom_storage_area.h" 5 #include "webkit/dom_storage/dom_storage_area.h"
6
7 #include "base/logging.h"
6 #include "webkit/dom_storage/dom_storage_map.h" 8 #include "webkit/dom_storage/dom_storage_map.h"
7 #include "webkit/dom_storage/dom_storage_namespace.h" 9 #include "webkit/dom_storage/dom_storage_namespace.h"
8 #include "webkit/dom_storage/dom_storage_types.h" 10 #include "webkit/dom_storage/dom_storage_types.h"
9 11
10 namespace dom_storage { 12 namespace dom_storage {
11 13
12 DomStorageArea::DomStorageArea( 14 DomStorageArea::DomStorageArea(
13 int64 namespace_id, const GURL& origin, 15 int64 namespace_id, const GURL& origin,
14 const FilePath& directory, DomStorageTaskRunner* task_runner) 16 const FilePath& directory, DomStorageTaskRunner* task_runner)
15 : namespace_id_(namespace_id), 17 : namespace_id_(namespace_id),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 DCHECK_NE(kLocalStorageNamespaceId, namespace_id_); 63 DCHECK_NE(kLocalStorageNamespaceId, namespace_id_);
62 DCHECK_NE(kLocalStorageNamespaceId, destination_namespace_id); 64 DCHECK_NE(kLocalStorageNamespaceId, destination_namespace_id);
63 // SessionNamespaces aren't backed by files on disk. 65 // SessionNamespaces aren't backed by files on disk.
64 DomStorageArea* copy = new DomStorageArea(destination_namespace_id, origin_, 66 DomStorageArea* copy = new DomStorageArea(destination_namespace_id, origin_,
65 FilePath(), task_runner_); 67 FilePath(), task_runner_);
66 copy->map_ = map_; 68 copy->map_ = map_;
67 return copy; 69 return copy;
68 } 70 }
69 71
70 } // namespace dom_storage 72 } // namespace dom_storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698