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

Side by Side Diff: content/browser/mojo/mojo_shell_context.cc

Issue 1228743002: Mandoline: Move ContentHandlerConnection into separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 5 years, 5 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
« no previous file with comments | « no previous file | mojo/mojo_shell.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « no previous file | mojo/mojo_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698