Chromium Code Reviews| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 | 88 |
| 89 // Called when a received message cannot be decoded. | 89 // Called when a received message cannot be decoded. |
| 90 virtual void ReceivedBadMessage() = 0; | 90 virtual void ReceivedBadMessage() = 0; |
| 91 | 91 |
| 92 // Track the count of visible widgets. Called by listeners to register and | 92 // Track the count of visible widgets. Called by listeners to register and |
| 93 // unregister visibility. | 93 // unregister visibility. |
| 94 virtual void WidgetRestored() = 0; | 94 virtual void WidgetRestored() = 0; |
| 95 virtual void WidgetHidden() = 0; | 95 virtual void WidgetHidden() = 0; |
| 96 virtual int VisibleWidgetCount() const = 0; | 96 virtual int VisibleWidgetCount() const = 0; |
| 97 | 97 |
| 98 // Indicates whether the current RenderProcessHost associated with a guest | 98 // Indicates whether the current RenderProcessHost associated with a guest |
|
lazyboy
2014/05/27 19:22:22
This needs description, mostly what you have in CL
Fady Samuel
2014/05/27 21:56:34
Done.
| |
| 99 // renderer process. | 99 // renderer process. |
| 100 virtual bool IsGuest() const = 0; | 100 virtual bool IsIsolatedGuest() const = 0; |
| 101 | 101 |
| 102 // Returns the storage partition associated with this process. | 102 // Returns the storage partition associated with this process. |
| 103 // | 103 // |
| 104 // TODO(nasko): Remove this function from the public API once | 104 // TODO(nasko): Remove this function from the public API once |
| 105 // URLRequestContextGetter's creation is moved into StoragePartition. | 105 // URLRequestContextGetter's creation is moved into StoragePartition. |
| 106 // http://crbug.com/158595 | 106 // http://crbug.com/158595 |
| 107 virtual StoragePartition* GetStoragePartition() const = 0; | 107 virtual StoragePartition* GetStoragePartition() const = 0; |
| 108 | 108 |
| 109 // Try to shutdown the associated renderer process as fast as possible. | 109 // Try to shutdown the associated renderer process as fast as possible. |
| 110 // If this renderer has any RenderViews with unload handlers, then this | 110 // If this renderer has any RenderViews with unload handlers, then this |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 266 static void SetMaxRendererProcessCount(size_t count); | 266 static void SetMaxRendererProcessCount(size_t count); |
| 267 | 267 |
| 268 // Returns the current max number of renderer processes used by the content | 268 // Returns the current max number of renderer processes used by the content |
| 269 // module. | 269 // module. |
| 270 static size_t GetMaxRendererProcessCount(); | 270 static size_t GetMaxRendererProcessCount(); |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 } // namespace content. | 273 } // namespace content. |
| 274 | 274 |
| 275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |