Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_BASE_IMPL_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_BASE_IMPL_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 | |
| 10 #include "chrome/browser/media/router/render_frame_host_id.h" | |
| 11 #include "content/public/browser/presentation_service_delegate.h" | |
| 12 | |
| 13 namespace media_router { | |
| 14 | |
| 15 class PresentationServiceDelegateBaseImpl | |
|
imcheng
2016/11/29 00:39:01
Before addressing the comments here, consider movi
imcheng
2016/11/29 00:39:01
nit: add comments, e.g.:
Base class shared by the
imcheng
2016/11/29 00:39:01
naming: Suggest just PresentationServiceDelegateBa
zhaobin
2016/11/29 23:22:32
Code removed
zhaobin
2016/11/29 23:22:32
Done.
zhaobin
2016/11/29 23:22:33
Code removed.
| |
| 16 : virtual public content::PresentationServiceDelegate { | |
|
imcheng
2016/11/29 00:39:01
virtual not needed?
zhaobin
2016/11/29 23:22:33
Done.
| |
| 17 public: | |
| 18 PresentationServiceDelegateBaseImpl(); | |
| 19 virtual ~PresentationServiceDelegateBaseImpl(); | |
| 20 | |
| 21 // content::PresentationServiceDelegateBase implementation. | |
| 22 void AddObserver( | |
| 23 int render_process_id, | |
| 24 int render_frame_id, | |
| 25 content::PresentationServiceDelegate::Observer* observer) override; | |
| 26 void RemoveObserver(int render_process_id, int render_frame_id) override; | |
| 27 | |
| 28 private: | |
| 29 std::map<RenderFrameHostId, content::PresentationServiceDelegate::Observer*> | |
| 30 observers_; | |
| 31 }; | |
| 32 | |
| 33 } // namespace media_router | |
| 34 | |
| 35 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_BASE_IMPL_H _ | |
| OLD | NEW |