OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "wtf/Threading.h" | 35 #include "wtf/Threading.h" |
36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
37 | 37 |
38 struct sqlite3; | 38 struct sqlite3; |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 // A class that abstracts the file system related operations required | 42 // A class that abstracts the file system related operations required |
43 // by the WebKit database code. | 43 // by the WebKit database code. |
44 class SQLiteFileSystem { | 44 class SQLiteFileSystem { |
45 DISALLOW_ALLOCATION(); | 45 DISALLOW_NEW(); |
46 public: | 46 public: |
47 // Registers a user-defined SQLite VFS. | 47 // Registers a user-defined SQLite VFS. |
48 static void registerSQLiteVFS(); | 48 static void registerSQLiteVFS(); |
49 | 49 |
50 // Opens a database file. | 50 // Opens a database file. |
51 // | 51 // |
52 // filemame - The name of the database file. | 52 // filemame - The name of the database file. |
53 // database - The SQLite structure that represents the database stored | 53 // database - The SQLite structure that represents the database stored |
54 // in the given file. | 54 // in the given file. |
55 static int openDatabase(const String& filename, sqlite3** database); | 55 static int openDatabase(const String& filename, sqlite3** database); |
56 | 56 |
57 private: | 57 private: |
58 // do not instantiate this class | 58 // do not instantiate this class |
59 SQLiteFileSystem(); | 59 SQLiteFileSystem(); |
60 }; // class SQLiteFileSystem | 60 }; // class SQLiteFileSystem |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
63 | 63 |
64 #endif | 64 #endif |
OLD | NEW |