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

Side by Side Diff: content/browser/service_worker/service_worker_version.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Mac fixes Created 3 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 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/browser/service_worker/service_worker_version.h" 5 #include "content/browser/service_worker/service_worker_version.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 base::CompareCase::SENSITIVE)) { 1403 base::CompareCase::SENSITIVE)) {
1404 DVLOG(1) << "Received unexpected invalid URL from renderer process."; 1404 DVLOG(1) << "Received unexpected invalid URL from renderer process.";
1405 BrowserThread::PostTask( 1405 BrowserThread::PostTask(
1406 BrowserThread::UI, FROM_HERE, 1406 BrowserThread::UI, FROM_HERE,
1407 base::Bind(&KillEmbeddedWorkerProcess, embedded_worker_->process_id(), 1407 base::Bind(&KillEmbeddedWorkerProcess, embedded_worker_->process_id(),
1408 RESULT_CODE_KILLED_BAD_MESSAGE)); 1408 RESULT_CODE_KILLED_BAD_MESSAGE));
1409 return; 1409 return;
1410 } 1410 }
1411 } 1411 }
1412 for (const url::Origin& url : origins) { 1412 for (const url::Origin& url : origins) {
1413 if (url.unique()) { 1413 if (url.opaque()) {
1414 DVLOG(1) << "Received unexpected unique origin from renderer process."; 1414 DVLOG(1) << "Received unexpected opaque origin from renderer process.";
1415 BrowserThread::PostTask( 1415 BrowserThread::PostTask(
1416 BrowserThread::UI, FROM_HERE, 1416 BrowserThread::UI, FROM_HERE,
1417 base::Bind(&KillEmbeddedWorkerProcess, embedded_worker_->process_id(), 1417 base::Bind(&KillEmbeddedWorkerProcess, embedded_worker_->process_id(),
1418 RESULT_CODE_KILLED_BAD_MESSAGE)); 1418 RESULT_CODE_KILLED_BAD_MESSAGE));
1419 return; 1419 return;
1420 } 1420 }
1421 } 1421 }
1422 set_foreign_fetch_scopes(sub_scopes); 1422 set_foreign_fetch_scopes(sub_scopes);
1423 set_foreign_fetch_origins(origins); 1423 set_foreign_fetch_origins(origins);
1424 } 1424 }
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 1899
1900 void ServiceWorkerVersion::CleanUpExternalRequest( 1900 void ServiceWorkerVersion::CleanUpExternalRequest(
1901 const std::string& request_uuid, 1901 const std::string& request_uuid,
1902 ServiceWorkerStatusCode status) { 1902 ServiceWorkerStatusCode status) {
1903 if (status == SERVICE_WORKER_OK) 1903 if (status == SERVICE_WORKER_OK)
1904 return; 1904 return;
1905 external_request_uuid_to_request_id_.erase(request_uuid); 1905 external_request_uuid_to_request_id_.erase(request_uuid);
1906 } 1906 }
1907 1907
1908 } // namespace content 1908 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698