Register external extension providers also for supervised users.
[chromium-blink-merge.git] / chromecast / renderer / cast_render_process_observer.h
blob0c28b58174b687400f0c32f03a76c40767f4162b
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.
5 #ifndef CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_
6 #define CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_
8 #include <vector>
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/public/renderer/render_process_observer.h"
14 namespace IPC {
15 class MessageFilter;
18 namespace chromecast {
19 namespace media {
20 class CmaMessageFilterProxy;
23 namespace shell {
25 class CastRenderProcessObserver : public content::RenderProcessObserver {
26 public:
27 CastRenderProcessObserver(
28 const std::vector<scoped_refptr<IPC::MessageFilter>>&
29 platform_message_filters);
30 ~CastRenderProcessObserver() override;
32 private:
33 // content::RenderProcessObserver implementation:
34 void OnRenderProcessShutdown() override;
36 void CreateCustomFilters();
38 #if !defined(OS_ANDROID)
39 scoped_refptr<media::CmaMessageFilterProxy> cma_message_filter_proxy_;
40 #endif // !defined(OS_ANDROID)
41 std::vector<scoped_refptr<IPC::MessageFilter>> platform_message_filters_;
43 DISALLOW_COPY_AND_ASSIGN(CastRenderProcessObserver);
46 } // namespace shell
47 } // namespace chromecast
49 #endif // CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_