| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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 CHROMECAST_RENDERER_CAST_RENDER_THREAD_OBSERVER_H_ | |
| 6 #define CHROMECAST_RENDERER_CAST_RENDER_THREAD_OBSERVER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "build/build_config.h" | |
| 13 #include "content/public/renderer/render_thread_observer.h" | |
| 14 | |
| 15 namespace chromecast { | |
| 16 namespace media { | |
| 17 class CmaMessageFilterProxy; | |
| 18 } | |
| 19 | |
| 20 namespace shell { | |
| 21 | |
| 22 class CastRenderThreadObserver : public content::RenderThreadObserver { | |
| 23 public: | |
| 24 CastRenderThreadObserver(); | |
| 25 ~CastRenderThreadObserver() override; | |
| 26 | |
| 27 private: | |
| 28 // content::RenderThreadObserver implementation: | |
| 29 void OnRenderProcessShutdown() override; | |
| 30 | |
| 31 void CreateCustomFilters(); | |
| 32 | |
| 33 #if !defined(OS_ANDROID) | |
| 34 scoped_refptr<media::CmaMessageFilterProxy> cma_message_filter_proxy_; | |
| 35 #endif // !defined(OS_ANDROID) | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(CastRenderThreadObserver); | |
| 38 }; | |
| 39 | |
| 40 } // namespace shell | |
| 41 } // namespace chromecast | |
| 42 | |
| 43 #endif // CHROMECAST_RENDERER_CAST_RENDER_THREAD_OBSERVER_H_ | |
| OLD | NEW |