summaryrefslogtreecommitdiffstats
path: root/mojo/shell/loader.h
blob: 756c070acb285f17eb9830c4033f78a0e268239d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2014 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 MOJO_SHELL_LOADER_H_
#define MOJO_SHELL_LOADER_H_

#include "base/callback.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/shell/public/interfaces/connector.mojom.h"
#include "mojo/shell/public/interfaces/shell_client.mojom.h"

namespace mojo {
namespace shell {

// Interface to implement special loading behavior for a particular name.
class Loader {
 public:
  virtual ~Loader() {}

  virtual void Load(const std::string& name,
                    mojom::ShellClientRequest request) = 0;
};

}  // namespace shell
}  // namespace mojo

#endif  // MOJO_SHELL_LOADER_H_