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

Side by Side Diff: webkit/browser/fileapi/sandbox_origin_database.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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/browser/fileapi/sandbox_origin_database.h" 5 #include "webkit/browser/fileapi/sandbox_origin_database.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 std::string key(kOriginKeyPrefix); 48 std::string key(kOriginKeyPrefix);
49 return key + origin; 49 return key + origin;
50 } 50 }
51 51
52 const char* LastPathKey() { 52 const char* LastPathKey() {
53 return kLastPathKey; 53 return kLastPathKey;
54 } 54 }
55 55
56 } // namespace 56 } // namespace
57 57
58 namespace fileapi { 58 namespace storage {
59 59
60 SandboxOriginDatabase::SandboxOriginDatabase( 60 SandboxOriginDatabase::SandboxOriginDatabase(
61 const base::FilePath& file_system_directory, 61 const base::FilePath& file_system_directory,
62 leveldb::Env* env_override) 62 leveldb::Env* env_override)
63 : file_system_directory_(file_system_directory), 63 : file_system_directory_(file_system_directory),
64 env_override_(env_override) { 64 env_override_(env_override) {
65 } 65 }
66 66
67 SandboxOriginDatabase::~SandboxOriginDatabase() { 67 SandboxOriginDatabase::~SandboxOriginDatabase() {
68 } 68 }
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 status = 337 status =
338 db_->Put(leveldb::WriteOptions(), LastPathKey(), std::string("-1")); 338 db_->Put(leveldb::WriteOptions(), LastPathKey(), std::string("-1"));
339 if (!status.ok()) { 339 if (!status.ok()) {
340 HandleError(FROM_HERE, status); 340 HandleError(FROM_HERE, status);
341 return false; 341 return false;
342 } 342 }
343 *number = -1; 343 *number = -1;
344 return true; 344 return true;
345 } 345 }
346 346
347 } // namespace fileapi 347 } // namespace storage
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/sandbox_origin_database.h ('k') | webkit/browser/fileapi/sandbox_origin_database_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698