| OLD | NEW |
| 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 CONTENT_BROWSER_RENDERER_HOST_DATABASE_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DATABASE_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_DATABASE_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DATABASE_MESSAGE_FILTER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 int desired_flags, | 42 int desired_flags, |
| 43 IPC::Message* reply_msg); | 43 IPC::Message* reply_msg); |
| 44 void OnDatabaseDeleteFile(const string16& vfs_file_name, | 44 void OnDatabaseDeleteFile(const string16& vfs_file_name, |
| 45 const bool& sync_dir, | 45 const bool& sync_dir, |
| 46 IPC::Message* reply_msg); | 46 IPC::Message* reply_msg); |
| 47 void OnDatabaseGetFileAttributes(const string16& vfs_file_name, | 47 void OnDatabaseGetFileAttributes(const string16& vfs_file_name, |
| 48 IPC::Message* reply_msg); | 48 IPC::Message* reply_msg); |
| 49 void OnDatabaseGetFileSize(const string16& vfs_file_name, | 49 void OnDatabaseGetFileSize(const string16& vfs_file_name, |
| 50 IPC::Message* reply_msg); | 50 IPC::Message* reply_msg); |
| 51 | 51 |
| 52 // Quota message handler (io thread) |
| 53 void OnDatabaseGetSpaceAvailable(const string16& origin_identifier, |
| 54 IPC::Message* reply_msg); |
| 55 |
| 52 // Database tracker message handlers (file thread) | 56 // Database tracker message handlers (file thread) |
| 53 void OnDatabaseOpened(const string16& origin_identifier, | 57 void OnDatabaseOpened(const string16& origin_identifier, |
| 54 const string16& database_name, | 58 const string16& database_name, |
| 55 const string16& description, | 59 const string16& description, |
| 56 int64 estimated_size); | 60 int64 estimated_size); |
| 57 void OnDatabaseModified(const string16& origin_identifier, | 61 void OnDatabaseModified(const string16& origin_identifier, |
| 58 const string16& database_name); | 62 const string16& database_name); |
| 59 void OnDatabaseClosed(const string16& origin_identifier, | 63 void OnDatabaseClosed(const string16& origin_identifier, |
| 60 const string16& database_name); | 64 const string16& database_name); |
| 61 | 65 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 77 | 81 |
| 78 // True if and only if this instance was added as an observer | 82 // True if and only if this instance was added as an observer |
| 79 // to DatabaseTracker. | 83 // to DatabaseTracker. |
| 80 bool observer_added_; | 84 bool observer_added_; |
| 81 | 85 |
| 82 // Keeps track of all DB connections opened by this renderer | 86 // Keeps track of all DB connections opened by this renderer |
| 83 webkit_database::DatabaseConnections database_connections_; | 87 webkit_database::DatabaseConnections database_connections_; |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 #endif // CONTENT_BROWSER_RENDERER_HOST_DATABASE_MESSAGE_FILTER_H_ | 90 #endif // CONTENT_BROWSER_RENDERER_HOST_DATABASE_MESSAGE_FILTER_H_ |
| OLD | NEW |