| OLD | NEW |
| 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 10 matching lines...) Expand all Loading... |
| 21 #include "media/media_features.h" | 21 #include "media/media_features.h" |
| 22 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| 23 | 23 |
| 24 class GURL; | 24 class GURL; |
| 25 | 25 |
| 26 namespace base { | 26 namespace base { |
| 27 class SharedPersistentMemoryAllocator; | 27 class SharedPersistentMemoryAllocator; |
| 28 class TimeDelta; | 28 class TimeDelta; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace media { | |
| 32 class AudioOutputController; | |
| 33 } | |
| 34 | |
| 35 namespace service_manager { | 31 namespace service_manager { |
| 36 class InterfaceProvider; | 32 class InterfaceProvider; |
| 37 } | 33 } |
| 38 | 34 |
| 39 namespace content { | 35 namespace content { |
| 40 class BrowserContext; | 36 class BrowserContext; |
| 41 class BrowserMessageFilter; | 37 class BrowserMessageFilter; |
| 42 class RenderProcessHostObserver; | 38 class RenderProcessHostObserver; |
| 43 class StoragePartition; | 39 class StoragePartition; |
| 44 struct GlobalRequestID; | 40 struct GlobalRequestID; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> | 282 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> |
| 287 TakeMetricsAllocator() = 0; | 283 TakeMetricsAllocator() = 0; |
| 288 | 284 |
| 289 // PlzNavigate | 285 // PlzNavigate |
| 290 // Returns the time the first call to Init completed successfully (after a new | 286 // Returns the time the first call to Init completed successfully (after a new |
| 291 // renderer process was created); further calls to Init won't change this | 287 // renderer process was created); further calls to Init won't change this |
| 292 // value. | 288 // value. |
| 293 // Note: Do not use! Will disappear after PlzNavitate is completed. | 289 // Note: Do not use! Will disappear after PlzNavitate is completed. |
| 294 virtual const base::TimeTicks& GetInitTimeForNavigationMetrics() const = 0; | 290 virtual const base::TimeTicks& GetInitTimeForNavigationMetrics() const = 0; |
| 295 | 291 |
| 296 // Retrieves the list of AudioOutputController objects associated | |
| 297 // with this object and passes it to the callback you specify, on | |
| 298 // the same thread on which you called the method. | |
| 299 typedef std::list<scoped_refptr<media::AudioOutputController>> | |
| 300 AudioOutputControllerList; | |
| 301 typedef base::Callback<void(const AudioOutputControllerList&)> | |
| 302 GetAudioOutputControllersCallback; | |
| 303 virtual void GetAudioOutputControllers( | |
| 304 const GetAudioOutputControllersCallback& callback) const = 0; | |
| 305 | |
| 306 // Returns true if this process currently has backgrounded priority. | 292 // Returns true if this process currently has backgrounded priority. |
| 307 virtual bool IsProcessBackgrounded() const = 0; | 293 virtual bool IsProcessBackgrounded() const = 0; |
| 308 | 294 |
| 309 // Returns the sum of the shared worker and service worker ref counts. | 295 // Returns the sum of the shared worker and service worker ref counts. |
| 310 virtual size_t GetWorkerRefCount() const = 0; | 296 virtual size_t GetWorkerRefCount() const = 0; |
| 311 | 297 |
| 312 // Counts the number of service workers who live on this process. The service | 298 // Counts the number of service workers who live on this process. The service |
| 313 // worker ref count is incremented when this process is allocated to the | 299 // worker ref count is incremented when this process is allocated to the |
| 314 // worker, and decremented when worker's shutdown sequence is completed. | 300 // worker, and decremented when worker's shutdown sequence is completed. |
| 315 virtual void IncrementServiceWorkerRefCount() = 0; | 301 virtual void IncrementServiceWorkerRefCount() = 0; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 static void SetMaxRendererProcessCount(size_t count); | 396 static void SetMaxRendererProcessCount(size_t count); |
| 411 | 397 |
| 412 // Returns the current maximum number of renderer process hosts kept by the | 398 // Returns the current maximum number of renderer process hosts kept by the |
| 413 // content module. | 399 // content module. |
| 414 static size_t GetMaxRendererProcessCount(); | 400 static size_t GetMaxRendererProcessCount(); |
| 415 }; | 401 }; |
| 416 | 402 |
| 417 } // namespace content. | 403 } // namespace content. |
| 418 | 404 |
| 419 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 405 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |