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

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

Issue 2355723004: [Presentation API] 1-UA: send message between controller and receiver page (Closed)
Patch Set: Merge with changes in Issue 2343013002 Created 4 years, 2 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 <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }; 45 };
46 46
47 using PresentationConnectionStateChangedCallback = 47 using PresentationConnectionStateChangedCallback =
48 base::Callback<void(const PresentationConnectionStateChangeInfo&)>; 48 base::Callback<void(const PresentationConnectionStateChangeInfo&)>;
49 49
50 // This class serves as a proxy to PSImpl. 50 // This class serves as a proxy to PSImpl.
51 class OffscreenPresentationClient { 51 class OffscreenPresentationClient {
52 public: 52 public:
53 OffscreenPresentationClient() {} 53 OffscreenPresentationClient() {}
54 54
55 virtual void OnSessionMessages(
56 const content::PresentationSessionInfo& session,
57 const ScopedVector<PresentationSessionMessage>& messages,
58 bool pass_ownership) = 0;
59
55 // For controller, add a receiver client 60 // For controller, add a receiver client
56 // For receiver, add a controller client 61 // For receiver, add a controller client
57 virtual void SetOffscreenPresentationClient(OffscreenPresentationClient*) = 0; 62 virtual void SetOffscreenPresentationClient(OffscreenPresentationClient*) = 0;
58 63
59 virtual void RemoveOffscreenPresentationClient( 64 virtual void RemoveOffscreenPresentationClient(
60 OffscreenPresentationClient*) = 0; 65 OffscreenPresentationClient*) = 0;
61 66
62 private: 67 private:
63 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentationClient); 68 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentationClient);
64 }; 69 };
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // offscreen_presentation_manager->RegisterOffscreenPresentationController(). 246 // offscreen_presentation_manager->RegisterOffscreenPresentationController().
242 virtual void RegisterOffscreenPresentationClient( 247 virtual void RegisterOffscreenPresentationClient(
243 int render_process_id, 248 int render_process_id,
244 int render_frame_id, 249 int render_frame_id,
245 OffscreenPresentationClient*) = 0; 250 OffscreenPresentationClient*) = 0;
246 }; 251 };
247 252
248 } // namespace content 253 } // namespace content
249 254
250 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 255 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/presentation/presentation_service_impl.cc ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698