summaryrefslogtreecommitdiffstats
path: root/components/mus/android_loader.h
blob: 581adcfc11e7f7d73e45a37ddb64092f933096e5 (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
29
30
31
32
33
34
// 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 COMPONENTS_MUS_ANDROID_LOADER_H_
#define COMPONENTS_MUS_ANDROID_LOADER_H_

#include "base/macros.h"
#include "mojo/shell/loader.h"

namespace mojo {
class ShellConnection;
}

namespace mus {

class AndroidLoader : public mojo::shell::Loader {
 public:
  AndroidLoader();
  ~AndroidLoader();

 private:
  // Overridden from mojo::shell::Loader:
  void Load(const std::string& name,
            mojo::shell::mojom::ShellClientRequest request) override;

  scoped_ptr<mojo::ShellConnection> app_;

  DISALLOW_COPY_AND_ASSIGN(AndroidLoader);
};

}  // namespace mus

#endif  // COMPONENTS_MUS_ANDROID_LOADER_H_