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

Unified Diff: content/browser/ballista/ballista_service_impl.h

Issue 1806253002: Added Web Share (navigator.share) experimental web API (stub). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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_
« no previous file with comments | « no previous file | content/browser/ballista/ballista_service_impl.cc » ('j') | content/browser/frame_host/render_frame_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698