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

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

Issue 174232: Chromium side patch for DB support on Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final version, including changes to the DEPS file. Created 11 years, 3 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 | « base/platform_file_win.cc ('k') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/file_path.h" 8 #include "base/file_path.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 10
(...skipping 10 matching lines...) Expand all
21 ResourceMessageFilter* resource_message_filter); 21 ResourceMessageFilter* resource_message_filter);
22 ~DatabaseDispatcherHost(); 22 ~DatabaseDispatcherHost();
23 23
24 // Returns true iff the message is HTML5 DB related and was processed. 24 // Returns true iff the message is HTML5 DB related and was processed.
25 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); 25 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);
26 26
27 // Processes the request to return a handle to the given DB file. 27 // Processes the request to return a handle to the given DB file.
28 void OnDatabaseOpenFile(const FilePath& file_name, 28 void OnDatabaseOpenFile(const FilePath& file_name,
29 int desired_flags, int32 message_id); 29 int desired_flags, int32 message_id);
30 // Processes the request to delete the given DB file. 30 // Processes the request to delete the given DB file.
31 void OnDatabaseDeleteFile(const FilePath& file_name, 31 void OnDatabaseDeleteFile(const FilePath& file_name, const bool& sync_dir,
32 int32 message_id); 32 int32 message_id);
33 // Processes the request to return the attributes of the given DB file. 33 // Processes the request to return the attributes of the given DB file.
34 void OnDatabaseGetFileAttributes(const FilePath& file_name, 34 void OnDatabaseGetFileAttributes(const FilePath& file_name,
35 int32 message_id); 35 int32 message_id);
36 // Processes the request to return the size of the given file. 36 // Processes the request to return the size of the given file.
37 void OnDatabaseGetFileSize(const FilePath& file_name, 37 void OnDatabaseGetFileSize(const FilePath& file_name,
38 int32 message_id); 38 int32 message_id);
39 39
40 private: 40 private:
41 // Determines if the message is HTML5 DB related. 41 // Determines if the message is HTML5 DB related.
42 bool IsDBMessage(const IPC::Message& message); 42 bool IsDBMessage(const IPC::Message& message);
43 43
44 // Returns the directory where all DB files are stored. 44 // Returns the directory where all DB files are stored.
45 FilePath GetDBDir(); 45 FilePath GetDBDir();
46 // Returns the absolute name of the given DB file. 46 // Returns the absolute name of the given DB file.
47 FilePath GetDBFileFullPath(const FilePath& file_name); 47 FilePath GetDBFileFullPath(const FilePath& file_name);
48 48
49 // The user data directory. 49 // The user data directory.
50 FilePath profile_path_; 50 FilePath profile_path_;
51 51
52 // The ResourceMessageFilter instance of this renderer process. 52 // The ResourceMessageFilter instance of this renderer process.
53 ResourceMessageFilter* resource_message_filter_; 53 ResourceMessageFilter* resource_message_filter_;
54 54
55 // The message loop of the file thread. 55 // The message loop of the file thread.
56 MessageLoop* file_thread_message_loop_; 56 MessageLoop* file_thread_message_loop_;
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_ 59 #endif // CHROME_BROWSER_RENDERER_HOST_DATABASE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « base/platform_file_win.cc ('k') | chrome/browser/renderer_host/database_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698