OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_WEBDATA_WEB_DATABASE_TABLE_H_ | 5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_TABLE_H_ |
6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_TABLE_H_ | 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_TABLE_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 | 9 |
10 namespace sql { | 10 namespace sql { |
11 class Connection; | 11 class Connection; |
12 class MetaTable; | 12 class MetaTable; |
13 } | 13 } |
14 | 14 |
15 // An abstract base class representing a table within a WebDatabase. | 15 // An abstract base class representing a table within a WebDatabase. |
16 // Each table should subclass this, adding type-specific methods as needed. | 16 // Each table should subclass this, adding type-specific methods as needed. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // class exists. Since lifetime of WebDatabaseTable objects slightly | 55 // class exists. Since lifetime of WebDatabaseTable objects slightly |
56 // exceeds that of WebDatabase, they should not be used in | 56 // exceeds that of WebDatabase, they should not be used in |
57 // ~WebDatabaseTable. | 57 // ~WebDatabaseTable. |
58 sql::Connection* db_; | 58 sql::Connection* db_; |
59 sql::MetaTable* meta_table_; | 59 sql::MetaTable* meta_table_; |
60 | 60 |
61 private: | 61 private: |
62 DISALLOW_COPY_AND_ASSIGN(WebDatabaseTable); | 62 DISALLOW_COPY_AND_ASSIGN(WebDatabaseTable); |
63 }; | 63 }; |
64 | 64 |
65 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_TABLE_H_ | 65 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_TABLE_H_ |
OLD | NEW |