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

Unified Diff: content/public/browser/browser_service_registry.h

Issue 1858103002: Strawman proposal for dealing with Android java mojo services registry in browser code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak a couple more headers. Created 4 years, 8 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: content/public/browser/browser_service_registry.h
diff --git a/content/public/browser/browser_service_registry.h b/content/public/browser/browser_service_registry.h
new file mode 100644
index 0000000000000000000000000000000000000000..025cca718cb239970d37ef62254049da787f252c
--- /dev/null
+++ b/content/public/browser/browser_service_registry.h
@@ -0,0 +1,29 @@
+// Copyright 2016 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 CONTENT_PUBLIC_BROWSER_BROWSER_SERVICE_REGISTRY_H_
+#define CONTENT_PUBLIC_BROWSER_BROWSER_SERVICE_REGISTRY_H_
+
+#include <string>
+#include <utility>
+
+#include "content/public/common/service_registry.h"
+
+namespace content {
+
+// A BrowserServiceRegistry is a ServiceRegistry for use in the browser process;
+// it behaves exactly like a normal ServiceRegistry, with the additional
+// property that on Android, it can be used to register Java native services.
+class CONTENT_EXPORT BrowserServiceRegistry : public ServiceRegistry {
+ public:
+ virtual ~BrowserServiceRegistry() {}
+
+#if defined(OS_ANDROID)
+ // ANDROID PUBLIC METHODS GO HERE (these would be pure virtual methods, implemented in BrowserServiceRegistryImpl).
+#endif
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_BROWSER_SERVICE_REGISTRY_H_
« no previous file with comments | « content/browser/service_worker/embedded_worker_instance.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698