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

Side by Side Diff: storage/browser/database/database_util.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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
« no previous file with comments | « storage/browser/database/database_tracker.cc ('k') | storage/browser/database/database_util.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_ 5 #ifndef STORAGE_BROWSER_DATABASE_DATABASE_UTIL_H_
6 #define WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_ 6 #define STORAGE_BROWSER_DATABASE_DATABASE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "storage/browser/storage_browser_export.h"
10 #include "url/gurl.h" 11 #include "url/gurl.h"
11 #include "webkit/browser/storage_browser_export.h"
12 12
13 namespace base { 13 namespace base {
14 class FilePath; 14 class FilePath;
15 } 15 }
16 16
17 namespace storage { 17 namespace storage {
18 18
19 class DatabaseTracker; 19 class DatabaseTracker;
20 20
21 class STORAGE_EXPORT DatabaseUtil { 21 class STORAGE_EXPORT DatabaseUtil {
22 public: 22 public:
23 static const char kJournalFileSuffix[]; 23 static const char kJournalFileSuffix[];
24 24
25 // Extract various information from a database vfs_file_name. All return 25 // Extract various information from a database vfs_file_name. All return
26 // parameters are optional. 26 // parameters are optional.
27 static bool CrackVfsFileName(const base::string16& vfs_file_name, 27 static bool CrackVfsFileName(const base::string16& vfs_file_name,
28 std::string* origin_identifier, 28 std::string* origin_identifier,
29 base::string16* database_name, 29 base::string16* database_name,
30 base::string16* sqlite_suffix); 30 base::string16* sqlite_suffix);
31 static base::FilePath GetFullFilePathForVfsFile( 31 static base::FilePath GetFullFilePathForVfsFile(
32 DatabaseTracker* db_tracker, 32 DatabaseTracker* db_tracker,
33 const base::string16& vfs_file_name); 33 const base::string16& vfs_file_name);
34 static bool IsValidOriginIdentifier(const std::string& origin_identifier); 34 static bool IsValidOriginIdentifier(const std::string& origin_identifier);
35 }; 35 };
36 36
37 } // namespace storage 37 } // namespace storage
38 38
39 #endif // WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_ 39 #endif // STORAGE_BROWSER_DATABASE_DATABASE_UTIL_H_
OLDNEW
« no previous file with comments | « storage/browser/database/database_tracker.cc ('k') | storage/browser/database/database_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698