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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1760673003: Cache API: Pass origin to platform, rather than DatabaseIdentifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (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/renderer/renderer_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 //------------------------------------------------------------------------------ 424 //------------------------------------------------------------------------------
425 425
426 WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() { 426 WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() {
427 return web_idb_factory_.get(); 427 return web_idb_factory_.get();
428 } 428 }
429 429
430 //------------------------------------------------------------------------------ 430 //------------------------------------------------------------------------------
431 431
432 blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage( 432 blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage(
433 const WebString& origin_identifier) { 433 const blink::WebSecurityOrigin& security_origin) {
434 const GURL origin = 434 const GURL origin = blink::WebStringToGURL(security_origin.toString());
jsbell 2016/03/02 19:52:25 It looks like this WebSecurityOrigin->WebString->G
Mike West 2016/03/02 20:58:39 If you make `origin` a `url::Origin`, you'll get t
435 storage::GetOriginFromIdentifier(origin_identifier.utf8());
436 return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(), 435 return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(),
437 origin); 436 origin);
438 } 437 }
439 438
440 //------------------------------------------------------------------------------ 439 //------------------------------------------------------------------------------
441 440
442 WebFileSystem* RendererBlinkPlatformImpl::fileSystem() { 441 WebFileSystem* RendererBlinkPlatformImpl::fileSystem() {
443 return WebFileSystemImpl::ThreadSpecificInstance(default_task_runner_); 442 return WebFileSystemImpl::ThreadSpecificInstance(default_task_runner_);
444 } 443 }
445 444
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 } 1259 }
1261 1260
1262 //------------------------------------------------------------------------------ 1261 //------------------------------------------------------------------------------
1263 1262
1264 blink::WebTrialTokenValidator* 1263 blink::WebTrialTokenValidator*
1265 RendererBlinkPlatformImpl::trialTokenValidator() { 1264 RendererBlinkPlatformImpl::trialTokenValidator() {
1266 return &trial_token_validator_; 1265 return &trial_token_validator_;
1267 } 1266 }
1268 1267
1269 } // namespace content 1268 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698