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

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

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 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
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 20 matching lines...) Expand all
31 IPC_MESSAGE_HANDLER(DatabaseMsg_CloseImmediately, 31 IPC_MESSAGE_HANDLER(DatabaseMsg_CloseImmediately,
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.opaque());
42 blink::WebDatabase::UpdateDatabaseSize( 42 blink::WebDatabase::UpdateDatabaseSize(
43 origin, WebString::FromUTF16(database_name), database_size); 43 origin, WebString::FromUTF16(database_name), database_size);
44 } 44 }
45 45
46 void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(const url::Origin& origin, 46 void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(const url::Origin& origin,
47 int64_t space_available) { 47 int64_t space_available) {
48 DCHECK(!origin.unique()); 48 DCHECK(!origin.opaque());
49 blink::WebDatabase::UpdateSpaceAvailable(origin, space_available); 49 blink::WebDatabase::UpdateSpaceAvailable(origin, space_available);
50 } 50 }
51 51
52 void DBMessageFilter::OnDatabaseResetSpaceAvailable(const url::Origin& origin) { 52 void DBMessageFilter::OnDatabaseResetSpaceAvailable(const url::Origin& origin) {
53 DCHECK(!origin.unique()); 53 DCHECK(!origin.opaque());
54 blink::WebDatabase::ResetSpaceAvailable(origin); 54 blink::WebDatabase::ResetSpaceAvailable(origin);
55 } 55 }
56 56
57 void DBMessageFilter::OnDatabaseCloseImmediately( 57 void DBMessageFilter::OnDatabaseCloseImmediately(
58 const url::Origin& origin, 58 const url::Origin& origin,
59 const base::string16& database_name) { 59 const base::string16& database_name) {
60 DCHECK(!origin.unique()); 60 DCHECK(!origin.opaque());
61 blink::WebDatabase::CloseDatabaseImmediately( 61 blink::WebDatabase::CloseDatabaseImmediately(
62 origin, WebString::FromUTF16(database_name)); 62 origin, WebString::FromUTF16(database_name));
63 } 63 }
64 64
65 } // namespace content 65 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl_unittest.cc ('k') | content/common/content_security_policy/csp_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698