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

Side by Side Diff: content/browser/renderer_host/database_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/renderer_host/database_message_filter.h" 5 #include "content/browser/renderer_host/database_message_filter.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 25 matching lines...) Expand all
36 using storage::DatabaseUtil; 36 using storage::DatabaseUtil;
37 using storage::VfsBackend; 37 using storage::VfsBackend;
38 38
39 namespace content { 39 namespace content {
40 namespace { 40 namespace {
41 41
42 const int kNumDeleteRetries = 2; 42 const int kNumDeleteRetries = 2;
43 const int kDelayDeleteRetryMs = 100; 43 const int kDelayDeleteRetryMs = 100;
44 44
45 bool IsOriginValid(const url::Origin& origin) { 45 bool IsOriginValid(const url::Origin& origin) {
46 return !origin.unique(); 46 return !origin.opaque();
47 } 47 }
48 48
49 } // namespace 49 } // namespace
50 50
51 DatabaseMessageFilter::DatabaseMessageFilter( 51 DatabaseMessageFilter::DatabaseMessageFilter(
52 storage::DatabaseTracker* db_tracker) 52 storage::DatabaseTracker* db_tracker)
53 : BrowserMessageFilter(DatabaseMsgStart), 53 : BrowserMessageFilter(DatabaseMsgStart),
54 db_tracker_(db_tracker), 54 db_tracker_(db_tracker),
55 observer_added_(false) { 55 observer_added_(false) {
56 DCHECK(db_tracker_.get()); 56 DCHECK(db_tracker_.get());
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 void DatabaseMessageFilter::OnDatabaseScheduledForDeletion( 416 void DatabaseMessageFilter::OnDatabaseScheduledForDeletion(
417 const std::string& origin_identifier, 417 const std::string& origin_identifier,
418 const base::string16& database_name) { 418 const base::string16& database_name) {
419 DCHECK(db_tracker_->task_runner()->RunsTasksInCurrentSequence()); 419 DCHECK(db_tracker_->task_runner()->RunsTasksInCurrentSequence());
420 Send(new DatabaseMsg_CloseImmediately( 420 Send(new DatabaseMsg_CloseImmediately(
421 url::Origin(storage::GetOriginFromIdentifier(origin_identifier)), 421 url::Origin(storage::GetOriginFromIdentifier(origin_identifier)),
422 database_name)); 422 database_name));
423 } 423 }
424 424
425 } // namespace content 425 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/isolated_origin_util.cc ('k') | content/browser/renderer_host/media/media_devices_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698