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

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: resolve code review comments from Mark Created 3 years, 9 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>; 177 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>;
178 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 178 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
179 DelegateObservers); 179 DelegateObservers);
180 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 180 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
181 SetDefaultPresentationUrl); 181 SetDefaultPresentationUrl);
182 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 182 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
183 DefaultPresentationRequestObserver); 183 DefaultPresentationRequestObserver);
184 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 184 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
185 DefaultPresentationUrlCallback); 185 DefaultPresentationUrlCallback);
186 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, 186 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
187 TestCloseConnectionForOffscreenPresentation);
188 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest,
187 ConnectToPresentation); 189 ConnectToPresentation);
188 190
189 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents); 191 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents);
190 192
191 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does 193 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does
192 // not have a persentation URL, returns the tab mirroring MediaSource. 194 // not have a persentation URL, returns the tab mirroring MediaSource.
193 MediaSource GetMediaSourceFromListener( 195 MediaSource GetMediaSourceFromListener(
194 content::PresentationScreenAvailabilityListener* listener); 196 content::PresentationScreenAvailabilityListener* listener);
195 197
196 void OnJoinRouteResponse( 198 void OnJoinRouteResponse(
(...skipping 26 matching lines...) Expand all
223 PresentationServiceDelegateObservers observers_; 225 PresentationServiceDelegateObservers observers_;
224 226
225 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; 227 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
226 228
227 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); 229 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);
228 }; 230 };
229 231
230 } // namespace media_router 232 } // namespace media_router
231 233
232 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 234 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698