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

Side by Side Diff: chrome/browser/renderer_host/database_dispatcher_host.h

Issue 1601005: Allow synchronous messages to be sent from threads other than the main thread... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/database_dispatcher_host.cc » ('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) 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 CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 16 matching lines...) Expand all
27 IPC::Message::Sender* sender, 27 IPC::Message::Sender* sender,
28 HostContentSettingsMap *host_content_settings_map); 28 HostContentSettingsMap *host_content_settings_map);
29 void Init(base::ProcessHandle process_handle); 29 void Init(base::ProcessHandle process_handle);
30 void Shutdown(); 30 void Shutdown();
31 31
32 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); 32 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);
33 33
34 // VFS message handlers (IO thread) 34 // VFS message handlers (IO thread)
35 void OnDatabaseOpenFile(const string16& vfs_file_name, 35 void OnDatabaseOpenFile(const string16& vfs_file_name,
36 int desired_flags, 36 int desired_flags,
37 int32 message_id); 37 IPC::Message* reply_msg);
38 void OnDatabaseDeleteFile(const string16& vfs_file_name, 38 void OnDatabaseDeleteFile(const string16& vfs_file_name,
39 const bool& sync_dir, 39 const bool& sync_dir,
40 int32 message_id); 40 IPC::Message* reply_msg);
41 void OnDatabaseGetFileAttributes(const string16& vfs_file_name, 41 void OnDatabaseGetFileAttributes(const string16& vfs_file_name,
42 int32 message_id); 42 IPC::Message* reply_msg);
43 void OnDatabaseGetFileSize(const string16& vfs_file_name, 43 void OnDatabaseGetFileSize(const string16& vfs_file_name,
44 int32 message_id); 44 IPC::Message* reply_msg);
45 45
46 // Database tracker message handlers (IO thread) 46 // Database tracker message handlers (IO thread)
47 void OnDatabaseOpened(const string16& origin_identifier, 47 void OnDatabaseOpened(const string16& origin_identifier,
48 const string16& database_name, 48 const string16& database_name,
49 const string16& description, 49 const string16& description,
50 int64 estimated_size); 50 int64 estimated_size);
51 void OnDatabaseModified(const string16& origin_identifier, 51 void OnDatabaseModified(const string16& origin_identifier,
52 const string16& database_name); 52 const string16& database_name);
53 void OnDatabaseClosed(const string16& origin_identifier, 53 void OnDatabaseClosed(const string16& origin_identifier,
54 const string16& database_name); 54 const string16& database_name);
(...skipping 21 matching lines...) Expand all
76 class PromptDelegate; 76 class PromptDelegate;
77 77
78 void AddObserver(); 78 void AddObserver();
79 void RemoveObserver(); 79 void RemoveObserver();
80 80
81 void ReceivedBadMessage(uint32 msg_type); 81 void ReceivedBadMessage(uint32 msg_type);
82 82
83 // VFS message handlers (file thread) 83 // VFS message handlers (file thread)
84 void DatabaseOpenFile(const string16& vfs_file_name, 84 void DatabaseOpenFile(const string16& vfs_file_name,
85 int desired_flags, 85 int desired_flags,
86 int32 message_id); 86 IPC::Message* reply_msg);
87 void DatabaseDeleteFile(const string16& vfs_file_name, 87 void DatabaseDeleteFile(const string16& vfs_file_name,
88 bool sync_dir, 88 bool sync_dir,
89 int32 message_id, 89 IPC::Message* reply_msg,
90 int reschedule_count); 90 int reschedule_count);
91 void DatabaseGetFileAttributes(const string16& vfs_file_name, 91 void DatabaseGetFileAttributes(const string16& vfs_file_name,
92 int32 message_id); 92 IPC::Message* reply_msg);
93 void DatabaseGetFileSize(const string16& vfs_file_name, 93 void DatabaseGetFileSize(const string16& vfs_file_name,
94 int32 message_id); 94 IPC::Message* reply_msg);
95 95
96 // Database tracker message handlers (file thread) 96 // Database tracker message handlers (file thread)
97 void DatabaseOpened(const string16& origin_identifier, 97 void DatabaseOpened(const string16& origin_identifier,
98 const string16& database_name, 98 const string16& database_name,
99 const string16& description, 99 const string16& description,
100 int64 estimated_size); 100 int64 estimated_size);
101 void DatabaseModified(const string16& origin_identifier, 101 void DatabaseModified(const string16& origin_identifier,
102 const string16& database_name); 102 const string16& database_name);
103 void DatabaseClosed(const string16& origin_identifier, 103 void DatabaseClosed(const string16& origin_identifier,
104 const string16& database_name); 104 const string16& database_name);
(...skipping 21 matching lines...) Expand all
126 bool shutdown_; 126 bool shutdown_;
127 127
128 // Keeps track of all DB connections opened by this renderer 128 // Keeps track of all DB connections opened by this renderer
129 webkit_database::DatabaseConnections database_connections_; 129 webkit_database::DatabaseConnections database_connections_;
130 130
131 // Used to look up permissions at database creation time. 131 // Used to look up permissions at database creation time.
132 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 132 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
133 }; 133 };
134 134
135 #endif // CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_ 135 #endif // CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/database_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698