Index: content/browser/ballista/ballista_service_impl.h |
diff --git a/content/browser/ballista/ballista_service_impl.h b/content/browser/ballista/ballista_service_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c4c1e3657992b75bc2b0a7c6eee16d204ab9f04e |
--- /dev/null |
+++ b/content/browser/ballista/ballista_service_impl.h |
@@ -0,0 +1,37 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
Sam McNally
2016/04/01 02:51:25
I would leave the browser side out of this CL.
Matt Giuca
2016/04/12 06:12:21
It makes sense to me to have one CL that pipes thi
Matt Giuca
2016/04/12 07:41:12
OK Done (separated into https://codereview.chromiu
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_BALLISTA_BALLISTA_SERVICE_IMPL_H_ |
+#define CONTENT_BROWSER_BALLISTA_BALLISTA_SERVICE_IMPL_H_ |
+ |
+#include "content/common/ballista_service.mojom.h" |
+#include "mojo/public/cpp/bindings/interface_request.h" |
+#include "mojo/public/cpp/bindings/strong_binding.h" |
+ |
+namespace content { |
+ |
+class BrowserContext; |
+ |
+class BallistaServiceImpl : public BallistaService { |
+ public: |
+ BallistaServiceImpl(BrowserContext* context, |
+ mojo::InterfaceRequest<BallistaService> request); |
+ |
+ ~BallistaServiceImpl() override; |
+ |
+ static void Create(BrowserContext* context, |
+ mojo::InterfaceRequest<BallistaService> request); |
+ |
+ void Share(const mojo::String& title, |
+ const mojo::String& text, |
+ const ShareCallback& callback) override; |
+ |
+ private: |
+ BrowserContext* context_; |
+ mojo::StrongBinding<BallistaService> binding_; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_BALLISTA_BALLISTA_SERVICE_IMPL_H_ |