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

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

Issue 2622993002: [Presentation API] Move presentation.mojom to content/common/presentation (Closed)
Patch Set: Fix presentation_service_delegate. DEPS failure Created 3 years, 11 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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/presentation/presentation.mojom.h"
15 #include "content/public/common/presentation_connection_message.h" 16 #include "content/public/common/presentation_connection_message.h"
16 #include "content/public/common/presentation_session.h" 17 #include "content/public/common/presentation_session.h"
17 #include "third_party/WebKit/public/platform/modules/presentation/presentation.m ojom.h"
18 18
19 class GURL; 19 class GURL;
20 20
21 namespace content { 21 namespace content {
22 22
23 class PresentationScreenAvailabilityListener; 23 class PresentationScreenAvailabilityListener;
24 24
25 using PresentationSessionStartedCallback = 25 using PresentationSessionStartedCallback =
26 base::Callback<void(const PresentationSessionInfo&)>; 26 base::Callback<void(const PresentationSessionInfo&)>;
27 using PresentationSessionErrorCallback = 27 using PresentationSessionErrorCallback =
(...skipping 16 matching lines...) Expand all
44 PresentationConnectionState state; 44 PresentationConnectionState state;
45 45
46 // |close_reason| and |messsage| are only used for state change to CLOSED. 46 // |close_reason| and |messsage| are only used for state change to CLOSED.
47 PresentationConnectionCloseReason close_reason; 47 PresentationConnectionCloseReason close_reason;
48 std::string message; 48 std::string message;
49 }; 49 };
50 50
51 using PresentationConnectionStateChangedCallback = 51 using PresentationConnectionStateChangedCallback =
52 base::Callback<void(const PresentationConnectionStateChangeInfo&)>; 52 base::Callback<void(const PresentationConnectionStateChangeInfo&)>;
53 53
54 using PresentationConnectionPtr = blink::mojom::PresentationConnectionPtr; 54 using PresentationConnectionPtr = content::mojom::PresentationConnectionPtr;
55 using PresentationConnectionRequest = 55 using PresentationConnectionRequest =
56 blink::mojom::PresentationConnectionRequest; 56 content::mojom::PresentationConnectionRequest;
57 57
58 using ReceiverConnectionAvailableCallback = 58 using ReceiverConnectionAvailableCallback =
59 base::Callback<void(const content::PresentationSessionInfo&, 59 base::Callback<void(const content::PresentationSessionInfo&,
60 PresentationConnectionPtr, 60 PresentationConnectionPtr,
61 PresentationConnectionRequest)>; 61 PresentationConnectionRequest)>;
62 62
63 // Base class for ControllerPresentationServiceDelegate and 63 // Base class for ControllerPresentationServiceDelegate and
64 // ReceiverPresentationServiceDelegate. 64 // ReceiverPresentationServiceDelegate.
65 class CONTENT_EXPORT PresentationServiceDelegate { 65 class CONTENT_EXPORT PresentationServiceDelegate {
66 public: 66 public:
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // |receiver_available_callback|: Invoked when successfully starting a 244 // |receiver_available_callback|: Invoked when successfully starting a
245 // offscreen presentation session. 245 // offscreen presentation session.
246 virtual void RegisterReceiverConnectionAvailableCallback( 246 virtual void RegisterReceiverConnectionAvailableCallback(
247 const content::ReceiverConnectionAvailableCallback& 247 const content::ReceiverConnectionAvailableCallback&
248 receiver_available_callback) = 0; 248 receiver_available_callback) = 0;
249 }; 249 };
250 250
251 } // namespace content 251 } // namespace content
252 252
253 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 253 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/app/mojo/content_browser_manifest.json ('k') | content/public/common/presentation_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698