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

Side by Side Diff: services/url_response_disk_cache/url_response_disk_cache_app.cc

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "services/url_response_disk_cache/url_response_disk_cache_app.h" 5 #include "services/url_response_disk_cache/url_response_disk_cache_app.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "services/url_response_disk_cache/url_response_disk_cache_impl.h" 8 #include "services/url_response_disk_cache/url_response_disk_cache_impl.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 12 matching lines...) Expand all
23 db_ = URLResponseDiskCacheImpl::CreateDB(task_runner_, force_clean); 23 db_ = URLResponseDiskCacheImpl::CreateDB(task_runner_, force_clean);
24 } 24 }
25 25
26 bool URLResponseDiskCacheApp::ConfigureIncomingConnection( 26 bool URLResponseDiskCacheApp::ConfigureIncomingConnection(
27 ApplicationConnection* connection) { 27 ApplicationConnection* connection) {
28 connection->AddService<URLResponseDiskCache>(this); 28 connection->AddService<URLResponseDiskCache>(this);
29 return true; 29 return true;
30 } 30 }
31 31
32 void URLResponseDiskCacheApp::Create( 32 void URLResponseDiskCacheApp::Create(
33 ApplicationConnection* connection, 33 const ConnectionContext& connection_context,
34 InterfaceRequest<URLResponseDiskCache> request) { 34 InterfaceRequest<URLResponseDiskCache> request) {
35 new URLResponseDiskCacheImpl(task_runner_, delegate_, db_, 35 new URLResponseDiskCacheImpl(task_runner_, delegate_, db_,
36 connection->GetRemoteApplicationURL(), 36 connection_context.remote_url, request.Pass());
37 request.Pass());
38 } 37 }
39 38
40 } // namespace mojo 39 } // namespace mojo
OLDNEW
« no previous file with comments | « services/url_response_disk_cache/url_response_disk_cache_app.h ('k') | shell/android/native_viewport_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698