Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1200)

Unified Diff: mojo/shell/android/android_handler_loader.h

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/android/android_handler.cc ('k') | mojo/shell/android/android_handler_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/android/android_handler_loader.h
diff --git a/mojo/shell/android/android_handler_loader.h b/mojo/shell/android/android_handler_loader.h
new file mode 100644
index 0000000000000000000000000000000000000000..9159273796ae80c6bca8b8cd86ad7c1f7440bfc8
--- /dev/null
+++ b/mojo/shell/android/android_handler_loader.h
@@ -0,0 +1,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 SHELL_ANDROID_ANDROID_HANDLER_LOADER_H_
+#define SHELL_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/public/cpp/application/application_impl.h"
+#include "mojo/shell/android/android_handler.h"
+#include "mojo/shell/application_manager/application_loader.h"
+
+namespace mojo {
+namespace shell {
+
+class AndroidHandlerLoader : public 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 shell
+} // namespace mojo
+
+#endif // SHELL_ANDROID_ANDROID_HANDLER_LOADER_H_
« no previous file with comments | « mojo/shell/android/android_handler.cc ('k') | mojo/shell/android/android_handler_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698