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