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

Side by Side Diff: content/public/browser/presentation_service_delegate.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/callback.h" 12 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/presentation_session.h" 15 #include "content/public/browser/presentation_session.h"
16 #include "content/public/browser/presentation_session_message.h" 16 #include "content/public/browser/presentation_session_message.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class PresentationScreenAvailabilityListener; 20 class PresentationScreenAvailabilityListener;
21 21
22 using PresentationSessionStartedCallback = 22 using PresentationSessionStartedCallback =
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // Sends a message (string or binary data) to a presentation session. 180 // Sends a message (string or binary data) to a presentation session.
181 // |render_process_id|, |render_frame_id|: ID of originating frame. 181 // |render_process_id|, |render_frame_id|: ID of originating frame.
182 // |session|: The presentation session to send the message to. 182 // |session|: The presentation session to send the message to.
183 // |message|: The message to send. The embedder takes ownership of |message|. 183 // |message|: The message to send. The embedder takes ownership of |message|.
184 // Must not be null. 184 // Must not be null.
185 // |send_message_cb|: Invoked after handling the send message request. 185 // |send_message_cb|: Invoked after handling the send message request.
186 virtual void SendMessage(int render_process_id, 186 virtual void SendMessage(int render_process_id,
187 int render_frame_id, 187 int render_frame_id,
188 const content::PresentationSessionInfo& session, 188 const content::PresentationSessionInfo& session,
189 scoped_ptr<PresentationSessionMessage> message, 189 std::unique_ptr<PresentationSessionMessage> message,
190 const SendMessageCallback& send_message_cb) = 0; 190 const SendMessageCallback& send_message_cb) = 0;
191 191
192 // Continuously listen for state changes for a PresentationConnection in a 192 // Continuously listen for state changes for a PresentationConnection in a
193 // frame. 193 // frame.
194 // |render_process_id|, |render_frame_id|: ID of frame. 194 // |render_process_id|, |render_frame_id|: ID of frame.
195 // |connection|: PresentationConnection to listen for state changes. 195 // |connection|: PresentationConnection to listen for state changes.
196 // |state_changed_cb|: Invoked with the PresentationConnection and its new 196 // |state_changed_cb|: Invoked with the PresentationConnection and its new
197 // state whenever there is a state change. 197 // state whenever there is a state change.
198 virtual void ListenForConnectionStateChange( 198 virtual void ListenForConnectionStateChange(
199 int render_process_id, 199 int render_process_id,
200 int render_frame_id, 200 int render_frame_id,
201 const PresentationSessionInfo& connection, 201 const PresentationSessionInfo& connection,
202 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0; 202 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0;
203 }; 203 };
204 204
205 } // namespace content 205 } // namespace content
206 206
207 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 207 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/power_save_blocker.h ('k') | content/public/browser/presentation_session_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698