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

Side by Side Diff: content/public/test/mock_render_process_host.h

Issue 894173002: Adds hook for content embedders to get media::BrowserCdm*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes CmaMessageFilterHost callback reference, rebase 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #endif 81 #endif
82 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; 82 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
83 void NotifyTimezoneChange() override; 83 void NotifyTimezoneChange() override;
84 ServiceRegistry* GetServiceRegistry() override; 84 ServiceRegistry* GetServiceRegistry() override;
85 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; 85 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
86 bool SubscribeUniformEnabled() const override; 86 bool SubscribeUniformEnabled() const override;
87 void OnAddSubscription(unsigned int target) override; 87 void OnAddSubscription(unsigned int target) override;
88 void OnRemoveSubscription(unsigned int target) override; 88 void OnRemoveSubscription(unsigned int target) override;
89 void SendUpdateValueState( 89 void SendUpdateValueState(
90 unsigned int target, const gpu::ValueState& state) override; 90 unsigned int target, const gpu::ValueState& state) override;
91 #if defined(ENABLE_BROWSER_CDMS)
92 media::BrowserCdm* GetBrowserCdm(int render_frame_id,
93 int cdm_id) const override;
94 #endif
91 95
92 // IPC::Sender via RenderProcessHost. 96 // IPC::Sender via RenderProcessHost.
93 bool Send(IPC::Message* msg) override; 97 bool Send(IPC::Message* msg) override;
94 98
95 // IPC::Listener via RenderProcessHost. 99 // IPC::Listener via RenderProcessHost.
96 bool OnMessageReceived(const IPC::Message& msg) override; 100 bool OnMessageReceived(const IPC::Message& msg) override;
97 void OnChannelConnected(int32 peer_pid) override; 101 void OnChannelConnected(int32 peer_pid) override;
98 102
99 // Attaches the factory object so we can remove this object in its destructor 103 // Attaches the factory object so we can remove this object in its destructor
100 // and prevent MockRenderProcessHostFacotry from deleting it. 104 // and prevent MockRenderProcessHostFacotry from deleting it.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // for deleting all MockRenderProcessHosts that have not deleted by a test in 158 // for deleting all MockRenderProcessHosts that have not deleted by a test in
155 // the destructor and prevent them from being leaked. 159 // the destructor and prevent them from being leaked.
156 mutable ScopedVector<MockRenderProcessHost> processes_; 160 mutable ScopedVector<MockRenderProcessHost> processes_;
157 161
158 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 162 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
159 }; 163 };
160 164
161 } // namespace content 165 } // namespace content
162 166
163 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 167 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698