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

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

Issue 1407933010: media: Make MediaKeys ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 1 month 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; 86 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
87 void NotifyTimezoneChange(const std::string& zone_id) override; 87 void NotifyTimezoneChange(const std::string& zone_id) override;
88 ServiceRegistry* GetServiceRegistry() override; 88 ServiceRegistry* GetServiceRegistry() override;
89 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; 89 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
90 bool SubscribeUniformEnabled() const override; 90 bool SubscribeUniformEnabled() const override;
91 void OnAddSubscription(unsigned int target) override; 91 void OnAddSubscription(unsigned int target) override;
92 void OnRemoveSubscription(unsigned int target) override; 92 void OnRemoveSubscription(unsigned int target) override;
93 void SendUpdateValueState( 93 void SendUpdateValueState(
94 unsigned int target, const gpu::ValueState& state) override; 94 unsigned int target, const gpu::ValueState& state) override;
95 #if defined(ENABLE_BROWSER_CDMS) 95 #if defined(ENABLE_BROWSER_CDMS)
96 media::BrowserCdm* GetBrowserCdm(int render_frame_id, 96 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id,
97 int cdm_id) const override; 97 int cdm_id) const override;
98 #endif 98 #endif
99 99
100 // IPC::Sender via RenderProcessHost. 100 // IPC::Sender via RenderProcessHost.
101 bool Send(IPC::Message* msg) override; 101 bool Send(IPC::Message* msg) override;
102 102
103 // IPC::Listener via RenderProcessHost. 103 // IPC::Listener via RenderProcessHost.
104 bool OnMessageReceived(const IPC::Message& msg) override; 104 bool OnMessageReceived(const IPC::Message& msg) override;
105 void OnChannelConnected(int32 peer_pid) override; 105 void OnChannelConnected(int32 peer_pid) override;
106 106
107 // Attaches the factory object so we can remove this object in its destructor 107 // Attaches the factory object so we can remove this object in its destructor
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // for deleting all MockRenderProcessHosts that have not deleted by a test in 161 // for deleting all MockRenderProcessHosts that have not deleted by a test in
162 // the destructor and prevent them from being leaked. 162 // the destructor and prevent them from being leaked.
163 mutable ScopedVector<MockRenderProcessHost> processes_; 163 mutable ScopedVector<MockRenderProcessHost> processes_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 165 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
166 }; 166 };
167 167
168 } // namespace content 168 } // namespace content
169 169
170 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 170 #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