| 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 "content/browser/mojo/mojo_shell_context.h" | 5 #include "content/browser/mojo/mojo_shell_context.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 167 } |
| 168 | 168 |
| 169 void MojoShellContext::ConnectToApplicationOnOwnThread( | 169 void MojoShellContext::ConnectToApplicationOnOwnThread( |
| 170 const GURL& url, | 170 const GURL& url, |
| 171 const GURL& requestor_url, | 171 const GURL& requestor_url, |
| 172 mojo::InterfaceRequest<mojo::ServiceProvider> request, | 172 mojo::InterfaceRequest<mojo::ServiceProvider> request, |
| 173 mojo::ServiceProviderPtr exposed_services) { | 173 mojo::ServiceProviderPtr exposed_services) { |
| 174 mojo::URLRequestPtr url_request = mojo::URLRequest::New(); | 174 mojo::URLRequestPtr url_request = mojo::URLRequest::New(); |
| 175 url_request->url = mojo::String::From(url); | 175 url_request->url = mojo::String::From(url); |
| 176 application_manager_->ConnectToApplication( | 176 application_manager_->ConnectToApplication( |
| 177 url_request.Pass(), requestor_url, request.Pass(), | 177 url_request.Pass(), std::string(), requestor_url, request.Pass(), |
| 178 exposed_services.Pass(), base::Bind(&base::DoNothing)); | 178 exposed_services.Pass(), base::Bind(&base::DoNothing)); |
| 179 } | 179 } |
| 180 | 180 |
| 181 GURL MojoShellContext::ResolveMappings(const GURL& url) { | 181 GURL MojoShellContext::ResolveMappings(const GURL& url) { |
| 182 return url; | 182 return url; |
| 183 } | 183 } |
| 184 | 184 |
| 185 GURL MojoShellContext::ResolveMojoURL(const GURL& url) { | 185 GURL MojoShellContext::ResolveMojoURL(const GURL& url) { |
| 186 return url; | 186 return url; |
| 187 } | 187 } |
| 188 | 188 |
| 189 bool MojoShellContext::CreateFetcher( | 189 bool MojoShellContext::CreateFetcher( |
| 190 const GURL& url, | 190 const GURL& url, |
| 191 const mojo::shell::Fetcher::FetchCallback& loader_callback) { | 191 const mojo::shell::Fetcher::FetchCallback& loader_callback) { |
| 192 return false; | 192 return false; |
| 193 } | 193 } |
| 194 | 194 |
| 195 } // namespace content | 195 } // namespace content |
| OLD | NEW |