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

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

Issue 780133002: Add optimization for CHROMIUM_subscribe_uniform extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman@ review 3 Created 6 years 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 base::Callback<void(const std::string&)> callback) override; 76 base::Callback<void(const std::string&)> callback) override;
77 WebRtcStopRtpDumpCallback StartRtpDump( 77 WebRtcStopRtpDumpCallback StartRtpDump(
78 bool incoming, 78 bool incoming,
79 bool outgoing, 79 bool outgoing,
80 const WebRtcRtpPacketCallback& packet_callback) override; 80 const WebRtcRtpPacketCallback& packet_callback) override;
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;
87 void OnAddSubscription(unsigned int target) override;
88 void OnRemoveSubscription(unsigned int target) override;
89 void SendUpdateValueState(
90 unsigned int target, const gpu::ValueState& state) override;
86 91
87 // IPC::Sender via RenderProcessHost. 92 // IPC::Sender via RenderProcessHost.
88 bool Send(IPC::Message* msg) override; 93 bool Send(IPC::Message* msg) override;
89 94
90 // IPC::Listener via RenderProcessHost. 95 // IPC::Listener via RenderProcessHost.
91 bool OnMessageReceived(const IPC::Message& msg) override; 96 bool OnMessageReceived(const IPC::Message& msg) override;
92 void OnChannelConnected(int32 peer_pid) override; 97 void OnChannelConnected(int32 peer_pid) override;
93 98
94 // Attaches the factory object so we can remove this object in its destructor 99 // Attaches the factory object so we can remove this object in its destructor
95 // and prevent MockRenderProcessHostFacotry from deleting it. 100 // and prevent MockRenderProcessHostFacotry from deleting it.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // for deleting all MockRenderProcessHosts that have not deleted by a test in 151 // for deleting all MockRenderProcessHosts that have not deleted by a test in
147 // the destructor and prevent them from being leaked. 152 // the destructor and prevent them from being leaked.
148 mutable ScopedVector<MockRenderProcessHost> processes_; 153 mutable ScopedVector<MockRenderProcessHost> processes_;
149 154
150 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 155 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
151 }; 156 };
152 157
153 } // namespace content 158 } // namespace content
154 159
155 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 160 #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