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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « webkit/dom_storage/session_storage_database.h ('k') | webkit/fileapi/async_file_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/session_storage_database.h" 5 #include "webkit/dom_storage/session_storage_database.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 18 matching lines...) Expand all
29 // | namespace-2- | dummy | 29 // | namespace-2- | dummy |
30 // | namespace-2-origin1 | 1 (shallow copy) | 30 // | namespace-2-origin1 | 1 (shallow copy) |
31 // | namespace-2-origin2 | 2 (shallow copy) | 31 // | namespace-2-origin2 | 2 (shallow copy) |
32 // | namespace-3- | dummy | 32 // | namespace-3- | dummy |
33 // | namespace-3-origin1 | 3 (deep copy) | 33 // | namespace-3-origin1 | 3 (deep copy) |
34 // | namespace-3-origin2 | 2 (shallow copy) | 34 // | namespace-3-origin2 | 2 (shallow copy) |
35 // | next-map-id | 4 | 35 // | next-map-id | 4 |
36 36
37 namespace dom_storage { 37 namespace dom_storage {
38 38
39 SessionStorageDatabase::SessionStorageDatabase(const FilePath& file_path) 39 SessionStorageDatabase::SessionStorageDatabase(const base::FilePath& file_path)
40 : file_path_(file_path), 40 : file_path_(file_path),
41 db_error_(false), 41 db_error_(false),
42 is_inconsistent_(false) { 42 is_inconsistent_(false) {
43 } 43 }
44 44
45 SessionStorageDatabase::~SessionStorageDatabase() { 45 SessionStorageDatabase::~SessionStorageDatabase() {
46 } 46 }
47 47
48 void SessionStorageDatabase::ReadAreaValues(const std::string& namespace_id, 48 void SessionStorageDatabase::ReadAreaValues(const std::string& namespace_id,
49 const GURL& origin, 49 const GURL& origin,
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 std::string SessionStorageDatabase::MapKey(const std::string& map_id, 618 std::string SessionStorageDatabase::MapKey(const std::string& map_id,
619 const std::string& key) { 619 const std::string& key) {
620 return base::StringPrintf("map-%s-%s", map_id.c_str(), key.c_str()); 620 return base::StringPrintf("map-%s-%s", map_id.c_str(), key.c_str());
621 } 621 }
622 622
623 const char* SessionStorageDatabase::NextMapIdKey() { 623 const char* SessionStorageDatabase::NextMapIdKey() {
624 return "next-map-id"; 624 return "next-map-id";
625 } 625 }
626 626
627 } // namespace dom_storage 627 } // namespace dom_storage
OLDNEW
« no previous file with comments | « webkit/dom_storage/session_storage_database.h ('k') | webkit/fileapi/async_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698