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

Side by Side Diff: webkit/browser/fileapi/sandbox_prioritized_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_prioritized_origin_database.h" 5 #include "webkit/browser/fileapi/sandbox_prioritized_origin_database.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/pickle.h" 11 #include "base/pickle.h"
12 #include "webkit/browser/fileapi/sandbox_isolated_origin_database.h" 12 #include "webkit/browser/fileapi/sandbox_isolated_origin_database.h"
13 #include "webkit/browser/fileapi/sandbox_origin_database.h" 13 #include "webkit/browser/fileapi/sandbox_origin_database.h"
14 14
15 namespace fileapi { 15 namespace storage {
16 16
17 namespace { 17 namespace {
18 18
19 const base::FilePath::CharType kPrimaryDirectory[] = 19 const base::FilePath::CharType kPrimaryDirectory[] =
20 FILE_PATH_LITERAL("primary"); 20 FILE_PATH_LITERAL("primary");
21 const base::FilePath::CharType kPrimaryOriginFile[] = 21 const base::FilePath::CharType kPrimaryOriginFile[] =
22 FILE_PATH_LITERAL("primary.origin"); 22 FILE_PATH_LITERAL("primary.origin");
23 23
24 bool WritePrimaryOriginFile(const base::FilePath& path, 24 bool WritePrimaryOriginFile(const base::FilePath& path,
25 const std::string& origin) { 25 const std::string& origin) {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 return; 213 return;
214 } 214 }
215 } 215 }
216 216
217 SandboxOriginDatabase* 217 SandboxOriginDatabase*
218 SandboxPrioritizedOriginDatabase::GetSandboxOriginDatabase() { 218 SandboxPrioritizedOriginDatabase::GetSandboxOriginDatabase() {
219 MaybeInitializeNonPrimaryDatabase(true); 219 MaybeInitializeNonPrimaryDatabase(true);
220 return origin_database_.get(); 220 return origin_database_.get();
221 } 221 }
222 222
223 } // namespace fileapi 223 } // namespace storage
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/sandbox_prioritized_origin_database.h ('k') | webkit/browser/fileapi/sandbox_quota_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698