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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual void EnableEventLogRecordings(const base::FilePath& file) = 0; 222 virtual void EnableEventLogRecordings(const base::FilePath& file) = 0;
223 virtual void DisableEventLogRecordings() = 0; 223 virtual void DisableEventLogRecordings() = 0;
224 224
225 // When set, |callback| receives log messages regarding, for example, media 225 // When set, |callback| receives log messages regarding, for example, media
226 // devices (webcams, mics, etc) that were initially requested in the render 226 // devices (webcams, mics, etc) that were initially requested in the render
227 // process associated with this RenderProcessHost. 227 // process associated with this RenderProcessHost.
228 virtual void SetWebRtcLogMessageCallback( 228 virtual void SetWebRtcLogMessageCallback(
229 base::Callback<void(const std::string&)> callback) = 0; 229 base::Callback<void(const std::string&)> callback) = 0;
230 virtual void ClearWebRtcLogMessageCallback() = 0; 230 virtual void ClearWebRtcLogMessageCallback() = 0;
231 231
232 typedef base::Callback<void(scoped_ptr<uint8_t[]> packet_header, 232 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header,
233 size_t header_length, 233 size_t header_length,
234 size_t packet_length, 234 size_t packet_length,
235 bool incoming)> WebRtcRtpPacketCallback; 235 bool incoming)>
236 WebRtcRtpPacketCallback;
236 237
237 typedef base::Callback<void(bool incoming, bool outgoing)> 238 typedef base::Callback<void(bool incoming, bool outgoing)>
238 WebRtcStopRtpDumpCallback; 239 WebRtcStopRtpDumpCallback;
239 240
240 // Starts passing RTP packets to |packet_callback| and returns the callback 241 // Starts passing RTP packets to |packet_callback| and returns the callback
241 // used to stop dumping. 242 // used to stop dumping.
242 virtual WebRtcStopRtpDumpCallback StartRtpDump( 243 virtual WebRtcStopRtpDumpCallback StartRtpDump(
243 bool incoming, 244 bool incoming,
244 bool outgoing, 245 bool outgoing,
245 const WebRtcRtpPacketCallback& packet_callback) = 0; 246 const WebRtcRtpPacketCallback& packet_callback) = 0;
246 #endif 247 #endif
247 248
248 // Tells the ResourceDispatcherHost to resume a deferred navigation without 249 // Tells the ResourceDispatcherHost to resume a deferred navigation without
249 // transferring it to a new renderer process. 250 // transferring it to a new renderer process.
250 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 251 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
251 252
252 // Notifies the renderer that the timezone configuration of the system might 253 // Notifies the renderer that the timezone configuration of the system might
253 // have changed. 254 // have changed.
254 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; 255 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0;
255 256
256 // Returns the ServiceRegistry for this process. 257 // Returns the ServiceRegistry for this process.
257 virtual ServiceRegistry* GetServiceRegistry() = 0; 258 virtual ServiceRegistry* GetServiceRegistry() = 0;
258 259
259 // Extracts any persistent-memory-allocator used for renderer metrics. 260 // Extracts any persistent-memory-allocator used for renderer metrics.
260 // Ownership is passed to the caller. To support sharing of histogram data 261 // Ownership is passed to the caller. To support sharing of histogram data
261 // between the Renderer and the Browser, the allocator is created when the 262 // between the Renderer and the Browser, the allocator is created when the
262 // process is created and later retrieved by the SubprocessMetricsProvider 263 // process is created and later retrieved by the SubprocessMetricsProvider
263 // for management. 264 // for management.
264 virtual scoped_ptr<base::SharedPersistentMemoryAllocator> 265 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator>
265 TakeMetricsAllocator() = 0; 266 TakeMetricsAllocator() = 0;
266 267
267 // PlzNavigate 268 // PlzNavigate
268 // Returns the time the first call to Init completed successfully (after a new 269 // Returns the time the first call to Init completed successfully (after a new
269 // renderer process was created); further calls to Init won't change this 270 // renderer process was created); further calls to Init won't change this
270 // value. 271 // value.
271 // Note: Do not use! Will disappear after PlzNavitate is completed. 272 // Note: Do not use! Will disappear after PlzNavitate is completed.
272 virtual const base::TimeTicks& GetInitTimeForNavigationMetrics() const = 0; 273 virtual const base::TimeTicks& GetInitTimeForNavigationMetrics() const = 0;
273 274
274 // Returns whether or not the CHROMIUM_subscribe_uniform WebGL extension 275 // Returns whether or not the CHROMIUM_subscribe_uniform WebGL extension
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 static void SetMaxRendererProcessCount(size_t count); 364 static void SetMaxRendererProcessCount(size_t count);
364 365
365 // Returns the current maximum number of renderer process hosts kept by the 366 // Returns the current maximum number of renderer process hosts kept by the
366 // content module. 367 // content module.
367 static size_t GetMaxRendererProcessCount(); 368 static size_t GetMaxRendererProcessCount();
368 }; 369 };
369 370
370 } // namespace content. 371 } // namespace content.
371 372
372 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 373 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/presentation_session_message.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698