blob: 653c6c9bf74e34ad549b3f93d08b67adb71516bd [file] [log] [blame] [edit]
// 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 "base/message_loop/message_loop.h"
#include "mojo/application/run_application_options_chromium.h"
#include "mojo/environment/scoped_chromium_init.h"
#include "mojo/services/network/network_service_app.h"
#include "third_party/mojo/src/mojo/public/c/system/main.h"
#include "third_party/mojo/src/mojo/public/cpp/application/run_application.h"
MojoResult MojoMain(MojoHandle application_request) {
mojo::ScopedChromiumInit init;
NetworkServiceApp network_service_app;
mojo::RunApplicationOptionsChromium options(base::MessageLoop::TYPE_IO);
return mojo::RunApplication(application_request, &network_service_app,
&options);
}