| Index: content/utility/utility_process_control_impl.h
|
| diff --git a/content/utility/utility_process_control_impl.h b/content/utility/utility_process_control_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..78f00e3243bdfe7758002151dc3fe42e94e6b5f0
|
| --- /dev/null
|
| +++ b/content/utility/utility_process_control_impl.h
|
| @@ -0,0 +1,51 @@
|
| +// 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.
|
| +
|
| +#ifndef UTILITY_PROCESS_CONTROL_IMPL_H_
|
| +#define UTILITY_PROCESS_CONTROL_IMPL_H_
|
| +
|
| +#include <map>
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "content/public/common/application_registry.h"
|
| +#include "content/public/common/process_control.mojom.h"
|
| +#include "mojo/application/public/interfaces/application.mojom.h"
|
| +#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
|
| +#include "url/gurl.h"
|
| +
|
| +namespace mojo {
|
| +namespace shell {
|
| +class ApplicationLoader;
|
| +} // namespace shell
|
| +} // namespace mojo
|
| +
|
| +namespace content {
|
| +
|
| +class UtilityProcessControlImpl : public ProcessControl,
|
| + public ApplicationRegistry {
|
| + public:
|
| + UtilityProcessControlImpl();
|
| + ~UtilityProcessControlImpl() override;
|
| +
|
| + using URLToLoaderMap = std::map<GURL, mojo::shell::ApplicationLoader*>;
|
| +
|
| + // ProcessControl:
|
| + void LoadApplication(const mojo::String& url,
|
| + mojo::InterfaceRequest<mojo::Application> request,
|
| + const LoadApplicationCallback& callback) override;
|
| +
|
| + // ApplicationRegistry:
|
| + void RegisterStaticAppForURL(const GURL& url,
|
| + const StaticAppFactory& factory) override;
|
| + private:
|
| +
|
| + URLToLoaderMap url_to_loader_map_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(UtilityProcessControlImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // UTILITY_PROCESS_CONTROL_IMPL_H_
|
|
|