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

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

Issue 1006423008: Add SetFileSize() IPC for WebSQL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 long long DatabaseUtil::DatabaseGetSpaceAvailable( 60 long long DatabaseUtil::DatabaseGetSpaceAvailable(
61 const WebString& origin_identifier, 61 const WebString& origin_identifier,
62 IPC::SyncMessageFilter* sync_message_filter) { 62 IPC::SyncMessageFilter* sync_message_filter) {
63 int64 rv = 0LL; 63 int64 rv = 0LL;
64 scoped_refptr<IPC::SyncMessageFilter> filter(sync_message_filter); 64 scoped_refptr<IPC::SyncMessageFilter> filter(sync_message_filter);
65 filter->Send(new DatabaseHostMsg_GetSpaceAvailable(origin_identifier.utf8(), 65 filter->Send(new DatabaseHostMsg_GetSpaceAvailable(origin_identifier.utf8(),
66 &rv)); 66 &rv));
67 return rv; 67 return rv;
68 } 68 }
69 69
70 bool DatabaseUtil::DatabaseSetFileSize(
71 const WebString& vfs_file_name, int64 size,
72 IPC::SyncMessageFilter* sync_message_filter) {
73 bool rv = false;
74 scoped_refptr<IPC::SyncMessageFilter> filter(sync_message_filter);
75 filter->Send(new DatabaseHostMsg_SetFileSize(vfs_file_name, size, &rv));
76 return rv;
77 }
78
70 } // namespace content 79 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698