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

Side by Side Diff: chrome/common/database_util.cc

Issue 3108030: Move bundled copy of sqlite one level deeper to better separate it... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 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 #include "chrome/common/database_util.h" 5 #include "chrome/common/database_util.h"
6 6
7 #include "chrome/common/child_thread.h" 7 #include "chrome/common/child_thread.h"
8 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
9 #include "ipc/ipc_sync_message_filter.h" 9 #include "ipc/ipc_sync_message_filter.h"
10 #include "third_party/sqlite/preprocessed/sqlite3.h" 10 #include "third_party/sqlite/sqlite3.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
12 12
13 using WebKit::WebKitClient; 13 using WebKit::WebKitClient;
14 using WebKit::WebString; 14 using WebKit::WebString;
15 15
16 WebKitClient::FileHandle DatabaseUtil::databaseOpenFile( 16 WebKitClient::FileHandle DatabaseUtil::databaseOpenFile(
17 const WebString& vfs_file_name, int desired_flags) { 17 const WebString& vfs_file_name, int desired_flags) {
18 IPC::PlatformFileForTransit file_handle = 18 IPC::PlatformFileForTransit file_handle =
19 IPC::InvalidPlatformFileForTransit(); 19 IPC::InvalidPlatformFileForTransit();
20 20
(...skipping 23 matching lines...) Expand all
44 return rv; 44 return rv;
45 } 45 }
46 46
47 long long DatabaseUtil::databaseGetFileSize(const WebString& vfs_file_name) { 47 long long DatabaseUtil::databaseGetFileSize(const WebString& vfs_file_name) {
48 int64 rv = 0LL; 48 int64 rv = 0LL;
49 scoped_refptr<IPC::SyncMessageFilter> filter = 49 scoped_refptr<IPC::SyncMessageFilter> filter =
50 ChildThread::current()->sync_message_filter(); 50 ChildThread::current()->sync_message_filter();
51 filter->Send(new ViewHostMsg_DatabaseGetFileSize(vfs_file_name, &rv)); 51 filter->Send(new ViewHostMsg_DatabaseGetFileSize(vfs_file_name, &rv));
52 return rv; 52 return rv;
53 } 53 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable_unittest.cc ('k') | chrome/common/sqlite_compiled_statement.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698