blob: a22366772cc2318b8f9863c3d4391febb3f7f6e2 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/authenticating_url_loader/authenticating_url_loader_app.h"
#include "mojo/public/cpp/application/application_impl.h"
#include "services/authenticating_url_loader/authenticating_url_loader_factory_impl.h"
namespace mojo {
AuthenticatingURLLoaderApp::AuthenticatingURLLoaderApp() {
}
AuthenticatingURLLoaderApp::~AuthenticatingURLLoaderApp() {
}
void AuthenticatingURLLoaderApp::Initialize(ApplicationImpl* app) {
app_ = app;
}
bool AuthenticatingURLLoaderApp::ConfigureIncomingConnection(
ApplicationConnection* connection) {
connection->AddService<AuthenticatingURLLoaderFactory>(this);
return true;
}
void AuthenticatingURLLoaderApp::Create(
ApplicationConnection* connection,
InterfaceRequest<AuthenticatingURLLoaderFactory> request) {
new AuthenticatingURLLoaderFactoryImpl(request.Pass(), app_);
}
} // namespace mojo