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

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

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/child/db_message_filter.h ('k') | content/child/indexed_db/indexed_db_dispatcher.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 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 "third_party/WebKit/public/platform/WebString.h" 8 #include "third_party/WebKit/public/platform/WebString.h"
9 #include "third_party/WebKit/public/web/WebDatabase.h" 9 #include "third_party/WebKit/public/web/WebDatabase.h"
10 10
(...skipping 13 matching lines...) Expand all
24 IPC_MESSAGE_HANDLER(DatabaseMsg_ResetSpaceAvailable, 24 IPC_MESSAGE_HANDLER(DatabaseMsg_ResetSpaceAvailable,
25 OnDatabaseResetSpaceAvailable) 25 OnDatabaseResetSpaceAvailable)
26 IPC_MESSAGE_HANDLER(DatabaseMsg_CloseImmediately, 26 IPC_MESSAGE_HANDLER(DatabaseMsg_CloseImmediately,
27 OnDatabaseCloseImmediately) 27 OnDatabaseCloseImmediately)
28 IPC_MESSAGE_UNHANDLED(handled = false) 28 IPC_MESSAGE_UNHANDLED(handled = false)
29 IPC_END_MESSAGE_MAP() 29 IPC_END_MESSAGE_MAP()
30 return handled; 30 return handled;
31 } 31 }
32 32
33 void DBMessageFilter::OnDatabaseUpdateSize(const std::string& origin_identifier, 33 void DBMessageFilter::OnDatabaseUpdateSize(const std::string& origin_identifier,
34 const string16& database_name, 34 const base::string16& database_name,
35 int64 database_size) { 35 int64 database_size) {
36 blink::WebDatabase::updateDatabaseSize( 36 blink::WebDatabase::updateDatabaseSize(
37 WebString::fromUTF8(origin_identifier), database_name, database_size); 37 WebString::fromUTF8(origin_identifier), database_name, database_size);
38 } 38 }
39 39
40 void DBMessageFilter::OnDatabaseUpdateSpaceAvailable( 40 void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(
41 const std::string& origin_identifier, 41 const std::string& origin_identifier,
42 int64 space_available) { 42 int64 space_available) {
43 blink::WebDatabase::updateSpaceAvailable( 43 blink::WebDatabase::updateSpaceAvailable(
44 WebString::fromUTF8(origin_identifier), space_available); 44 WebString::fromUTF8(origin_identifier), space_available);
45 } 45 }
46 46
47 void DBMessageFilter::OnDatabaseResetSpaceAvailable( 47 void DBMessageFilter::OnDatabaseResetSpaceAvailable(
48 const std::string& origin_identifier) { 48 const std::string& origin_identifier) {
49 blink::WebDatabase::resetSpaceAvailable( 49 blink::WebDatabase::resetSpaceAvailable(
50 WebString::fromUTF8(origin_identifier)); 50 WebString::fromUTF8(origin_identifier));
51 } 51 }
52 52
53 void DBMessageFilter::OnDatabaseCloseImmediately( 53 void DBMessageFilter::OnDatabaseCloseImmediately(
54 const std::string& origin_identifier, 54 const std::string& origin_identifier,
55 const string16& database_name) { 55 const base::string16& database_name) {
56 blink::WebDatabase::closeDatabaseImmediately( 56 blink::WebDatabase::closeDatabaseImmediately(
57 WebString::fromUTF8(origin_identifier), database_name); 57 WebString::fromUTF8(origin_identifier), database_name);
58 } 58 }
59 59
60 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/child/db_message_filter.h ('k') | content/child/indexed_db/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698