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

Side by Side Diff: webkit/support/simple_database_system.h

Issue 7056025: More WebSQLDatabase and QuotaManager integration. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
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 WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_ 5 #ifndef WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_
6 #define WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_ 6 #define WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const string16& description, 57 const string16& description,
58 int64 estimated_size); 58 int64 estimated_size);
59 void DatabaseModified(const string16& origin_identifier, 59 void DatabaseModified(const string16& origin_identifier,
60 const string16& database_name); 60 const string16& database_name);
61 void DatabaseClosed(const string16& origin_identifier, 61 void DatabaseClosed(const string16& origin_identifier,
62 const string16& database_name); 62 const string16& database_name);
63 63
64 // DatabaseTracker::Observer implementation 64 // DatabaseTracker::Observer implementation
65 virtual void OnDatabaseSizeChanged(const string16& origin_identifier, 65 virtual void OnDatabaseSizeChanged(const string16& origin_identifier,
66 const string16& database_name, 66 const string16& database_name,
67 int64 database_size, 67 int64 database_size);
68 int64 space_available);
69 virtual void OnDatabaseScheduledForDeletion(const string16& origin_identifier, 68 virtual void OnDatabaseScheduledForDeletion(const string16& origin_identifier,
70 const string16& database_name); 69 const string16& database_name);
71 70
72 // Used by our public SQLite VFS methods, only called on the db_thread. 71 // Used by our public SQLite VFS methods, only called on the db_thread.
73 void VfsOpenFile(const string16& vfs_file_name, int desired_flags, 72 void VfsOpenFile(const string16& vfs_file_name, int desired_flags,
74 base::PlatformFile* result, base::WaitableEvent* done_event); 73 base::PlatformFile* result, base::WaitableEvent* done_event);
75 void VfsDeleteFile(const string16& vfs_file_name, bool sync_dir, 74 void VfsDeleteFile(const string16& vfs_file_name, bool sync_dir,
76 int* result, base::WaitableEvent* done_event); 75 int* result, base::WaitableEvent* done_event);
77 void VfsGetFileAttributes(const string16& vfs_file_name, 76 void VfsGetFileAttributes(const string16& vfs_file_name,
78 uint32* result, base::WaitableEvent* done_event); 77 uint32* result, base::WaitableEvent* done_event);
(...skipping 19 matching lines...) Expand all
98 97
99 // Data members to support waiting for all connections to be closed. 98 // Data members to support waiting for all connections to be closed.
100 scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_; 99 scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_;
101 100
102 static SimpleDatabaseSystem* instance_; 101 static SimpleDatabaseSystem* instance_;
103 }; 102 };
104 103
105 DISABLE_RUNNABLE_METHOD_REFCOUNT(SimpleDatabaseSystem); 104 DISABLE_RUNNABLE_METHOD_REFCOUNT(SimpleDatabaseSystem);
106 105
107 #endif // WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_ 106 #endif // WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698