1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "mojo/application_manager/application_loader.h"
7 #include "base/logging.h"
11 ApplicationLoader::SimpleLoadCallbacks::SimpleLoadCallbacks(
12 ScopedMessagePipeHandle shell_handle
)
13 : shell_handle_(shell_handle
.Pass()) {
16 ApplicationLoader::SimpleLoadCallbacks::~SimpleLoadCallbacks() {
19 ScopedMessagePipeHandle
20 ApplicationLoader::SimpleLoadCallbacks::RegisterApplication() {
21 return shell_handle_
.Pass();
24 void ApplicationLoader::SimpleLoadCallbacks::LoadWithContentHandler(
25 const GURL
& content_handle_url
,
26 URLResponsePtr content
) {