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

Side by Side Diff: webkit/database/database_util.h

Issue 11274003: webkit: Merge 'database' and 'quota' to 'webkit_storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More EXPORT for Win Created 8 years, 1 month 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/database/database_tracker.h ('k') | webkit/database/databases_table.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) 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_DATABASE_DATABASE_UTIL_H_ 5 #ifndef WEBKIT_DATABASE_DATABASE_UTIL_H_
6 #define WEBKIT_DATABASE_DATABASE_UTIL_H_ 6 #define WEBKIT_DATABASE_DATABASE_UTIL_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "webkit/storage/webkit_storage_export.h"
10 11
11 class FilePath; 12 class FilePath;
12 13
13 namespace webkit_database { 14 namespace webkit_database {
14 15
15 class DatabaseTracker; 16 class DatabaseTracker;
16 17
17 class DatabaseUtil { 18 class WEBKIT_STORAGE_EXPORT DatabaseUtil {
18 public: 19 public:
19 static const char kJournalFileSuffix[]; 20 static const char kJournalFileSuffix[];
20 21
21 // Extract various information from a database vfs_file_name. All return 22 // Extract various information from a database vfs_file_name. All return
22 // parameters are optional. 23 // parameters are optional.
23 static bool CrackVfsFileName(const string16& vfs_file_name, 24 static bool CrackVfsFileName(const string16& vfs_file_name,
24 string16* origin_identifier, 25 string16* origin_identifier,
25 string16* database_name, 26 string16* database_name,
26 string16* sqlite_suffix); 27 string16* sqlite_suffix);
27 static FilePath GetFullFilePathForVfsFile(DatabaseTracker* db_tracker, 28 static FilePath GetFullFilePathForVfsFile(DatabaseTracker* db_tracker,
28 const string16& vfs_file_name); 29 const string16& vfs_file_name);
29 static string16 GetOriginIdentifier(const GURL& url); 30 static string16 GetOriginIdentifier(const GURL& url);
30 static GURL GetOriginFromIdentifier(const string16& origin_identifier); 31 static GURL GetOriginFromIdentifier(const string16& origin_identifier);
31 }; 32 };
32 33
33 } // namespace webkit_database 34 } // namespace webkit_database
34 35
35 #endif // WEBKIT_DATABASE_DATABASE_UTIL_H_ 36 #endif // WEBKIT_DATABASE_DATABASE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/database/database_tracker.h ('k') | webkit/database/databases_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698