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

Side by Side Diff: content/child/database_util.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « content/child/database_util.h ('k') | content/child/db_message_filter.h » ('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) 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 #include "content/child/database_util.h" 5 #include "content/child/database_util.h"
6 6
7 #include "content/common/database_messages.h" 7 #include "content/common/database_messages.h"
8 #include "ipc/ipc_sync_message_filter.h" 8 #include "ipc/ipc_sync_message_filter.h"
9 #include "third_party/WebKit/public/platform/WebString.h" 9 #include "third_party/WebKit/public/platform/WebString.h"
10 #include "third_party/sqlite/sqlite3.h" 10 #include "third_party/sqlite/sqlite3.h"
(...skipping 22 matching lines...) Expand all
33 IPC::SyncMessageFilter* sync_message_filter) { 33 IPC::SyncMessageFilter* sync_message_filter) {
34 int rv = SQLITE_IOERR_DELETE; 34 int rv = SQLITE_IOERR_DELETE;
35 sync_message_filter->Send( 35 sync_message_filter->Send(
36 new DatabaseHostMsg_DeleteFile(vfs_file_name, sync_dir, &rv)); 36 new DatabaseHostMsg_DeleteFile(vfs_file_name, sync_dir, &rv));
37 return rv; 37 return rv;
38 } 38 }
39 39
40 long DatabaseUtil::DatabaseGetFileAttributes( 40 long DatabaseUtil::DatabaseGetFileAttributes(
41 const WebString& vfs_file_name, 41 const WebString& vfs_file_name,
42 IPC::SyncMessageFilter* sync_message_filter) { 42 IPC::SyncMessageFilter* sync_message_filter) {
43 int32 rv = -1; 43 int32_t rv = -1;
44 sync_message_filter->Send( 44 sync_message_filter->Send(
45 new DatabaseHostMsg_GetFileAttributes(vfs_file_name, &rv)); 45 new DatabaseHostMsg_GetFileAttributes(vfs_file_name, &rv));
46 return rv; 46 return rv;
47 } 47 }
48 48
49 long long DatabaseUtil::DatabaseGetFileSize( 49 long long DatabaseUtil::DatabaseGetFileSize(
50 const WebString& vfs_file_name, 50 const WebString& vfs_file_name,
51 IPC::SyncMessageFilter* sync_message_filter) { 51 IPC::SyncMessageFilter* sync_message_filter) {
52 int64 rv = 0LL; 52 int64_t rv = 0LL;
53 sync_message_filter->Send( 53 sync_message_filter->Send(
54 new DatabaseHostMsg_GetFileSize(vfs_file_name, &rv)); 54 new DatabaseHostMsg_GetFileSize(vfs_file_name, &rv));
55 return rv; 55 return rv;
56 } 56 }
57 57
58 long long DatabaseUtil::DatabaseGetSpaceAvailable( 58 long long DatabaseUtil::DatabaseGetSpaceAvailable(
59 const WebString& origin_identifier, 59 const WebString& origin_identifier,
60 IPC::SyncMessageFilter* sync_message_filter) { 60 IPC::SyncMessageFilter* sync_message_filter) {
61 int64 rv = 0LL; 61 int64_t rv = 0LL;
62 sync_message_filter->Send( 62 sync_message_filter->Send(
63 new DatabaseHostMsg_GetSpaceAvailable(origin_identifier.utf8(), &rv)); 63 new DatabaseHostMsg_GetSpaceAvailable(origin_identifier.utf8(), &rv));
64 return rv; 64 return rv;
65 } 65 }
66 66
67 bool DatabaseUtil::DatabaseSetFileSize( 67 bool DatabaseUtil::DatabaseSetFileSize(
68 const WebString& vfs_file_name, 68 const WebString& vfs_file_name,
69 int64 size, 69 int64_t size,
70 IPC::SyncMessageFilter* sync_message_filter) { 70 IPC::SyncMessageFilter* sync_message_filter) {
71 bool rv = false; 71 bool rv = false;
72 sync_message_filter->Send( 72 sync_message_filter->Send(
73 new DatabaseHostMsg_SetFileSize(vfs_file_name, size, &rv)); 73 new DatabaseHostMsg_SetFileSize(vfs_file_name, size, &rv));
74 return rv; 74 return rv;
75 } 75 }
76 76
77 } // namespace content 77 } // namespace content
OLDNEW
« no previous file with comments | « content/child/database_util.h ('k') | content/child/db_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698