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

Side by Side Diff: content/browser/webshare/share_service_impl.cc

Issue 1880003002: Added browser-side service for navigator.actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ballista-share-requester-mojo-blink
Patch Set: Only add ShareService if experimental flag is on. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « content/browser/webshare/share_service_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/webshare/share_service_impl.h"
6
7 namespace content {
8
9 ShareServiceImpl::ShareServiceImpl(BrowserContext* context,
10 mojo::InterfaceRequest<ShareService> request)
11 : context_(context), binding_(this, std::move(request)) {}
12
13 ShareServiceImpl::~ShareServiceImpl() = default;
14
15 // static
16 void ShareServiceImpl::Create(BrowserContext* context,
17 mojo::InterfaceRequest<ShareService> request) {
18 new ShareServiceImpl(context, std::move(request));
19 }
20
21 void ShareServiceImpl::Share(const mojo::String& title,
22 const mojo::String& text,
23 const ShareCallback& callback) {
24 NOTIMPLEMENTED() << ": \"" << title << "\", \"" << text << "\"";
25
26 callback.Run("Not implemented: navigator.share");
27
28 static_cast<void>(context_);
29 }
30
31 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/webshare/share_service_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698