Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chromecast / renderer / cast_render_process_observer.h
bloba84bec151c62a6596a57c077cd22e39fefa9ff53
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 chromecast {
15 class CapabilitiesMessageFilter;
16 namespace media {
17 class CmaMessageFilterProxy;
20 namespace shell {
22 class CastRenderProcessObserver : public content::RenderProcessObserver {
23 public:
24 CastRenderProcessObserver();
25 ~CastRenderProcessObserver() override;
27 private:
28 // content::RenderProcessObserver implementation:
29 void OnRenderProcessShutdown() override;
31 void CreateCustomFilters();
33 #if !defined(OS_ANDROID)
34 scoped_refptr<media::CmaMessageFilterProxy> cma_message_filter_proxy_;
35 #endif // !defined(OS_ANDROID)
36 scoped_refptr<CapabilitiesMessageFilter> capabilities_message_filter_;
38 DISALLOW_COPY_AND_ASSIGN(CastRenderProcessObserver);
41 } // namespace shell
42 } // namespace chromecast
44 #endif // CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_