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

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

Issue 1132903002: [MediaRouter] Add implementation of PresentationServiceDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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_MEDIA_SINKS_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_MEDIA_SINKS_OBSERVER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_MEDIA_SINKS_OBSERVER_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_MEDIA_SINKS_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/media/router/media_sinks_observer.h" 10 #include "chrome/browser/media/router/media_sinks_observer.h"
(...skipping 19 matching lines...) Expand all
30 // Does not take ownership of |listener| or |router|. 30 // Does not take ownership of |listener| or |router|.
31 PresentationMediaSinksObserver( 31 PresentationMediaSinksObserver(
32 MediaRouter* router, 32 MediaRouter* router,
33 content::PresentationScreenAvailabilityListener* listener, 33 content::PresentationScreenAvailabilityListener* listener,
34 const MediaSource& source); 34 const MediaSource& source);
35 ~PresentationMediaSinksObserver() override; 35 ~PresentationMediaSinksObserver() override;
36 36
37 // MediaSinksObserver implementation. 37 // MediaSinksObserver implementation.
38 void OnSinksReceived(const std::vector<MediaSink>& result) override; 38 void OnSinksReceived(const std::vector<MediaSink>& result) override;
39 39
40 content::PresentationScreenAvailabilityListener* listener() const {
41 return listener_;
42 }
43
40 private: 44 private:
41 enum Availability { UNKNOWN, AVAILABLE, UNAVAILABLE }; 45 enum Availability { UNKNOWN, AVAILABLE, UNAVAILABLE };
42 46
43 content::PresentationScreenAvailabilityListener* listener_; 47 content::PresentationScreenAvailabilityListener* listener_;
44 Availability previous_availablity_; 48 Availability previous_availablity_;
45 49
46 DISALLOW_COPY_AND_ASSIGN(PresentationMediaSinksObserver); 50 DISALLOW_COPY_AND_ASSIGN(PresentationMediaSinksObserver);
47 }; 51 };
48 52
49 } // namespace media_router 53 } // namespace media_router
50 54
51 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_MEDIA_SINKS_OBSERVER_H_ 55 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_MEDIA_SINKS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698