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

Unified Diff: mojo/shell/dynamic_service_loader.h

Issue 122173004: Add test for ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 6 years, 12 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
Index: mojo/shell/dynamic_service_loader.h
diff --git a/mojo/shell/dynamic_service_loader.h b/mojo/shell/dynamic_service_loader.h
new file mode 100644
index 0000000000000000000000000000000000000000..9020972dcecf58e37605cf4a561127d1ad0d99c3
--- /dev/null
+++ b/mojo/shell/dynamic_service_loader.h
@@ -0,0 +1,39 @@
+// Copyright 2013 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_DYNAMIC_SERVICE_LOADER_H_
+#define MOJO_SHELL_DYNAMIC_SERVICE_LOADER_H_
+
+#include <map>
+
+#include "mojo/public/system/core_cpp.h"
+#include "mojo/shell/service_manager.h"
+#include "url/gurl.h"
+
+namespace mojo {
+namespace shell {
+
+class Context;
+
+class DynamicServiceLoader : public ServiceManager::Loader {
viettrungluu 2014/01/03 17:44:49 A class-level comment would be nice.
DaveMoore 2014/01/03 18:05:49 Done.
+ public:
+ explicit DynamicServiceLoader(Context* context);
+ virtual ~DynamicServiceLoader();
+
+ private:
+ class LoadContext;
+
+ virtual void Load(const GURL& url,
+ ScopedMessagePipeHandle service_handle) MOJO_OVERRIDE;
+
+ typedef std::map<GURL, LoadContext*> LoadContextMap;
+ LoadContextMap url_to_load_context_;
+ Context* context_;
+ DISALLOW_COPY_AND_ASSIGN(DynamicServiceLoader);
viettrungluu 2014/01/03 17:44:49 #include "base/basictypes.h" for this.
DaveMoore 2014/01/03 18:05:49 Done.
+};
+
+} // namespace shell
+} // namespace mojo
+
+#endif // MOJO_SHELL_DYNAMIC_SERVICE_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698