forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid_handler_loader.h
37 lines (28 loc) · 1.06 KB
/
android_handler_loader.h
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
35
36
37
// 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_RUNNER_ANDROID_ANDROID_HANDLER_LOADER_H_
#define MOJO_RUNNER_ANDROID_ANDROID_HANDLER_LOADER_H_
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/runner/android/android_handler.h"
#include "mojo/shell/application_loader.h"
namespace mojo {
namespace runner {
class AndroidHandlerLoader : public shell::ApplicationLoader {
public:
AndroidHandlerLoader();
virtual ~AndroidHandlerLoader();
private:
// ApplicationLoader overrides:
void Load(const GURL& url,
InterfaceRequest<Application> application_request) override;
AndroidHandler android_handler_;
scoped_ptr<ApplicationImpl> application_;
DISALLOW_COPY_AND_ASSIGN(AndroidHandlerLoader);
};
} // namespace runner
} // namespace mojo
#endif // MOJO_RUNNER_ANDROID_ANDROID_HANDLER_LOADER_H_