| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |