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

Side by Side Diff: chrome/browser/media/router/presentation_service_delegate_impl.h

Issue 2471573005: [Presentation API] (5th) (1-UA) integrate controller and receiver side for 1-UA messaging (Closed)
Patch Set: call OPM.unregisterOPMController() in PresentationFrame::Reset() Created 4 years, 1 month 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 CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 private: 171 private:
172 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>; 172 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>;
173 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 173 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
174 DelegateObservers); 174 DelegateObservers);
175 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 175 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
176 SetDefaultPresentationUrl); 176 SetDefaultPresentationUrl);
177 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 177 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
178 DefaultPresentationRequestObserver); 178 DefaultPresentationRequestObserver);
179 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 179 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
180 DefaultPresentationUrlCallback); 180 DefaultPresentationUrlCallback);
181 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
182 ConnectToOffscreenPresentation);
181 183
182 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents); 184 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents);
183 185
184 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does 186 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does
185 // not have a persentation URL, returns the tab mirroring MediaSource. 187 // not have a persentation URL, returns the tab mirroring MediaSource.
186 MediaSource GetMediaSourceFromListener( 188 MediaSource GetMediaSourceFromListener(
187 content::PresentationScreenAvailabilityListener* listener); 189 content::PresentationScreenAvailabilityListener* listener);
188 190
189 void OnJoinRouteResponse( 191 void OnJoinRouteResponse(
190 int render_process_id, 192 int render_process_id,
(...skipping 18 matching lines...) Expand all
209 std::unique_ptr<PresentationFrameManager> frame_manager_; 211 std::unique_ptr<PresentationFrameManager> frame_manager_;
210 212
211 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; 213 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
212 214
213 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); 215 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);
214 }; 216 };
215 217
216 } // namespace media_router 218 } // namespace media_router
217 219
218 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 220 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698