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

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

Issue 2714783002: [Presentation API] (browser side) Implement reconnect() for 1-UA mode (Closed)
Patch Set: remove duplicate unit tests Created 3 years, 10 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 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>; 178 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>;
179 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 179 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
180 DelegateObservers); 180 DelegateObservers);
181 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 181 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
182 SetDefaultPresentationUrl); 182 SetDefaultPresentationUrl);
183 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 183 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
184 DefaultPresentationRequestObserver); 184 DefaultPresentationRequestObserver);
185 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 185 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
186 DefaultPresentationUrlCallback); 186 DefaultPresentationUrlCallback);
187 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 187 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
188 TestCloseConnectionForOffscreenPresentation);
189 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
188 ConnectToPresentation); 190 ConnectToPresentation);
189 191
190 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents); 192 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents);
191 193
192 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does 194 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does
193 // not have a persentation URL, returns the tab mirroring MediaSource. 195 // not have a persentation URL, returns the tab mirroring MediaSource.
194 MediaSource GetMediaSourceFromListener( 196 MediaSource GetMediaSourceFromListener(
195 content::PresentationScreenAvailabilityListener* listener); 197 content::PresentationScreenAvailabilityListener* listener);
196 198
197 void OnJoinRouteResponse( 199 void OnJoinRouteResponse(
(...skipping 26 matching lines...) Expand all
224 PresentationServiceDelegateObservers observers_; 226 PresentationServiceDelegateObservers observers_;
225 227
226 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; 228 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
227 229
228 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); 230 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);
229 }; 231 };
230 232
231 } // namespace media_router 233 } // namespace media_router
232 234
233 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 235 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698