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

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

Issue 2586483002: Use explicit WebString <-> string16 conversion methods in storage API files (Closed)
Patch Set: '' Created 4 years 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.cc ('k') | content/child/fileapi/webfilesystem_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/db_message_filter.h" 5 #include "content/child/db_message_filter.h"
6 6
7 #include "content/common/database_messages.h" 7 #include "content/common/database_messages.h"
8 #include "storage/common/database/database_identifier.h" 8 #include "storage/common/database/database_identifier.h"
9 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 9 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
10 #include "third_party/WebKit/public/platform/WebString.h" 10 #include "third_party/WebKit/public/platform/WebString.h"
(...skipping 21 matching lines...) Expand all
32 OnDatabaseCloseImmediately) 32 OnDatabaseCloseImmediately)
33 IPC_MESSAGE_UNHANDLED(handled = false) 33 IPC_MESSAGE_UNHANDLED(handled = false)
34 IPC_END_MESSAGE_MAP() 34 IPC_END_MESSAGE_MAP()
35 return handled; 35 return handled;
36 } 36 }
37 37
38 void DBMessageFilter::OnDatabaseUpdateSize(const url::Origin& origin, 38 void DBMessageFilter::OnDatabaseUpdateSize(const url::Origin& origin,
39 const base::string16& database_name, 39 const base::string16& database_name,
40 int64_t database_size) { 40 int64_t database_size) {
41 DCHECK(!origin.unique()); 41 DCHECK(!origin.unique());
42 blink::WebDatabase::updateDatabaseSize(origin, database_name, database_size); 42 blink::WebDatabase::updateDatabaseSize(
43 origin, WebString::fromUTF16(database_name), database_size);
43 } 44 }
44 45
45 void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(const url::Origin& origin, 46 void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(const url::Origin& origin,
46 int64_t space_available) { 47 int64_t space_available) {
47 DCHECK(!origin.unique()); 48 DCHECK(!origin.unique());
48 blink::WebDatabase::updateSpaceAvailable(origin, space_available); 49 blink::WebDatabase::updateSpaceAvailable(origin, space_available);
49 } 50 }
50 51
51 void DBMessageFilter::OnDatabaseResetSpaceAvailable(const url::Origin& origin) { 52 void DBMessageFilter::OnDatabaseResetSpaceAvailable(const url::Origin& origin) {
52 DCHECK(!origin.unique()); 53 DCHECK(!origin.unique());
53 blink::WebDatabase::resetSpaceAvailable(origin); 54 blink::WebDatabase::resetSpaceAvailable(origin);
54 } 55 }
55 56
56 void DBMessageFilter::OnDatabaseCloseImmediately( 57 void DBMessageFilter::OnDatabaseCloseImmediately(
57 const url::Origin& origin, 58 const url::Origin& origin,
58 const base::string16& database_name) { 59 const base::string16& database_name) {
59 DCHECK(!origin.unique()); 60 DCHECK(!origin.unique());
60 blink::WebDatabase::closeDatabaseImmediately(origin, database_name); 61 blink::WebDatabase::closeDatabaseImmediately(
62 origin, WebString::fromUTF16(database_name));
61 } 63 }
62 64
63 } // namespace content 65 } // namespace content
OLDNEW
« no previous file with comments | « content/child/database_util.cc ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698