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

Side by Side Diff: webkit/browser/database/databases_table.h

Issue 498273002: Rename storage-related export macros and build targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « webkit/browser/database/database_util.h ('k') | webkit/browser/database/vfs_backend.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_DATABASES_TABLE_H_ 5 #ifndef WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_
6 #define WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_ 6 #define WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "webkit/browser/webkit_storage_browser_export.h" 11 #include "webkit/browser/storage_export.h"
12 12
13 namespace sql { 13 namespace sql {
14 class Connection; 14 class Connection;
15 } 15 }
16 16
17 namespace storage { 17 namespace storage {
18 18
19 struct WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE DatabaseDetails { 19 struct STORAGE_EXPORT_PRIVATE DatabaseDetails {
20 DatabaseDetails(); 20 DatabaseDetails();
21 ~DatabaseDetails(); 21 ~DatabaseDetails();
22 22
23 std::string origin_identifier; 23 std::string origin_identifier;
24 base::string16 database_name; 24 base::string16 database_name;
25 base::string16 description; 25 base::string16 description;
26 int64 estimated_size; 26 int64 estimated_size;
27 }; 27 };
28 28
29 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE DatabasesTable { 29 class STORAGE_EXPORT_PRIVATE DatabasesTable {
30 public: 30 public:
31 explicit DatabasesTable(sql::Connection* db) : db_(db) { } 31 explicit DatabasesTable(sql::Connection* db) : db_(db) { }
32 32
33 bool Init(); 33 bool Init();
34 int64 GetDatabaseID(const std::string& origin_identifier, 34 int64 GetDatabaseID(const std::string& origin_identifier,
35 const base::string16& database_name); 35 const base::string16& database_name);
36 bool GetDatabaseDetails(const std::string& origin_identifier, 36 bool GetDatabaseDetails(const std::string& origin_identifier,
37 const base::string16& database_name, 37 const base::string16& database_name,
38 DatabaseDetails* details); 38 DatabaseDetails* details);
39 bool InsertDatabaseDetails(const DatabaseDetails& details); 39 bool InsertDatabaseDetails(const DatabaseDetails& details);
40 bool UpdateDatabaseDetails(const DatabaseDetails& details); 40 bool UpdateDatabaseDetails(const DatabaseDetails& details);
41 bool DeleteDatabaseDetails(const std::string& origin_identifier, 41 bool DeleteDatabaseDetails(const std::string& origin_identifier,
42 const base::string16& database_name); 42 const base::string16& database_name);
43 bool GetAllOriginIdentifiers(std::vector<std::string>* origin_identifiers); 43 bool GetAllOriginIdentifiers(std::vector<std::string>* origin_identifiers);
44 bool GetAllDatabaseDetailsForOriginIdentifier( 44 bool GetAllDatabaseDetailsForOriginIdentifier(
45 const std::string& origin_identifier, 45 const std::string& origin_identifier,
46 std::vector<DatabaseDetails>* details); 46 std::vector<DatabaseDetails>* details);
47 bool DeleteOriginIdentifier(const std::string& origin_identifier); 47 bool DeleteOriginIdentifier(const std::string& origin_identifier);
48 private: 48 private:
49 sql::Connection* db_; 49 sql::Connection* db_;
50 }; 50 };
51 51
52 } // namespace storage 52 } // namespace storage
53 53
54 #endif // WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_ 54 #endif // WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_
OLDNEW
« no previous file with comments | « webkit/browser/database/database_util.h ('k') | webkit/browser/database/vfs_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698