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

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebPresentationClient_h 5 #ifndef WebPresentationClient_h
6 #define WebPresentationClient_h 6 #define WebPresentationClient_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebCommon.h" 9 #include "public/platform/WebCommon.h"
10 #include "public/platform/WebPassOwnPtr.h" 10
11 #include <memory>
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class WebPresentationAvailabilityObserver; 15 class WebPresentationAvailabilityObserver;
15 class WebPresentationController; 16 class WebPresentationController;
16 class WebPresentationConnectionClient; 17 class WebPresentationConnectionClient;
17 class WebString; 18 class WebString;
18 struct WebPresentationError; 19 struct WebPresentationError;
19 20
20 // If session was created, callback's onSuccess() is invoked with the informatio n about the 21 // If session was created, callback's onSuccess() is invoked with the informatio n about the
21 // presentation session created by the embedder. Otherwise, onError() is invoked with the error code 22 // presentation session created by the embedder. Otherwise, onError() is invoked with the error code
22 // and message. 23 // and message.
23 using WebPresentationConnectionClientCallbacks = WebCallbacks<WebPassOwnPtr<WebP resentationConnectionClient>, const WebPresentationError&>; 24 using WebPresentationConnectionClientCallbacks = WebCallbacks<std::unique_ptr<We bPresentationConnectionClient>, const WebPresentationError&>;
24 25
25 // Callback for .getAvailability(). 26 // Callback for .getAvailability().
26 using WebPresentationAvailabilityCallbacks = WebCallbacks<bool, const WebPresent ationError&>; 27 using WebPresentationAvailabilityCallbacks = WebCallbacks<bool, const WebPresent ationError&>;
27 28
28 // The implementation the embedder has to provide for the Presentation API to wo rk. 29 // The implementation the embedder has to provide for the Presentation API to wo rk.
29 class WebPresentationClient { 30 class WebPresentationClient {
30 public: 31 public:
31 virtual ~WebPresentationClient() { } 32 virtual ~WebPresentationClient() { }
32 33
33 // Passes the Blink-side delegate to the embedder. 34 // Passes the Blink-side delegate to the embedder.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0; 74 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0;
74 75
75 // Called when a defaultRequest has been set. It sends the url associated 76 // Called when a defaultRequest has been set. It sends the url associated
76 // with it for the embedder. 77 // with it for the embedder.
77 virtual void setDefaultPresentationUrl(const WebString&) = 0; 78 virtual void setDefaultPresentationUrl(const WebString&) = 0;
78 }; 79 };
79 80
80 } // namespace blink 81 } // namespace blink
81 82
82 #endif // WebPresentationClient_h 83 #endif // WebPresentationClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698