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

Side by Side Diff: chromecast/renderer/cast_render_process_observer.h

Issue 917063003: Chromecast: add platform hooks to inject browser/renderer message filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 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 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 CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_ 5 #ifndef CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_
6 #define CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_ 6 #define CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_
7 7
8 #include <vector>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "content/public/renderer/render_process_observer.h" 12 #include "content/public/renderer/render_process_observer.h"
11 13
14 namespace IPC {
15 class MessageFilter;
16 }
17
12 namespace chromecast { 18 namespace chromecast {
13 namespace media { 19 namespace media {
14 class CmaMessageFilterProxy; 20 class CmaMessageFilterProxy;
15 } 21 }
16 22
17 namespace shell { 23 namespace shell {
18 24
19 class CastRenderProcessObserver : public content::RenderProcessObserver { 25 class CastRenderProcessObserver : public content::RenderProcessObserver {
20 public: 26 public:
21 CastRenderProcessObserver(); 27 CastRenderProcessObserver(
28 const std::vector<scoped_refptr<IPC::MessageFilter>>&
29 platform_message_filters);
22 ~CastRenderProcessObserver() override; 30 ~CastRenderProcessObserver() override;
23 31
24 private: 32 private:
25 // content::RenderProcessObserver implementation: 33 // content::RenderProcessObserver implementation:
26 void OnRenderProcessShutdown() override; 34 void OnRenderProcessShutdown() override;
27 35
28 void CreateCustomFilters(); 36 void CreateCustomFilters();
29 37
30 #if !defined(OS_ANDROID) 38 #if !defined(OS_ANDROID)
31 scoped_refptr<media::CmaMessageFilterProxy> cma_message_filter_proxy_; 39 scoped_refptr<media::CmaMessageFilterProxy> cma_message_filter_proxy_;
32 #endif // !defined(OS_ANDROID) 40 #endif // !defined(OS_ANDROID)
41 std::vector<scoped_refptr<IPC::MessageFilter>> platform_message_filters_;
33 42
34 DISALLOW_COPY_AND_ASSIGN(CastRenderProcessObserver); 43 DISALLOW_COPY_AND_ASSIGN(CastRenderProcessObserver);
35 }; 44 };
36 45
37 } // namespace shell 46 } // namespace shell
38 } // namespace chromecast 47 } // namespace chromecast
39 48
40 #endif // CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_ 49 #endif // CHROMECAST_RENDERER_CAST_RENDER_PROCESS_OBSERVER_H_
OLDNEW
« no previous file with comments | « chromecast/renderer/cast_content_renderer_client_simple.cc ('k') | chromecast/renderer/cast_render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698