| 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 <list> | 8 #include <list> | 
| 9 | 9 | 
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 81   // listeners own it any more, it will delete itself. | 81   // listeners own it any more, it will delete itself. | 
| 82   virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0; | 82   virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0; | 
| 83   virtual void RemoveRoute(int32 routing_id) = 0; | 83   virtual void RemoveRoute(int32 routing_id) = 0; | 
| 84 | 84 | 
| 85   // Add and remove observers for lifecycle events. The order in which | 85   // Add and remove observers for lifecycle events. The order in which | 
| 86   // notifications are sent to observers is undefined. Observers must be sure to | 86   // notifications are sent to observers is undefined. Observers must be sure to | 
| 87   // remove the observer before they go away. | 87   // remove the observer before they go away. | 
| 88   virtual void AddObserver(RenderProcessHostObserver* observer) = 0; | 88   virtual void AddObserver(RenderProcessHostObserver* observer) = 0; | 
| 89   virtual void RemoveObserver(RenderProcessHostObserver* observer) = 0; | 89   virtual void RemoveObserver(RenderProcessHostObserver* observer) = 0; | 
| 90 | 90 | 
| 91   // Called when a received message cannot be decoded. | 91   // Called when a received message cannot be decoded. Terminates the renderer. | 
| 92   virtual void ReceivedBadMessage() = 0; | 92   // Most callers should not call this directly, but instead should call | 
|  | 93   // bad_message::BadMessageReceived() or an equivalent method outside of the | 
|  | 94   // content module. | 
|  | 95   virtual void ShutdownForBadMessage() = 0; | 
| 93 | 96 | 
| 94   // Track the count of visible widgets. Called by listeners to register and | 97   // Track the count of visible widgets. Called by listeners to register and | 
| 95   // unregister visibility. | 98   // unregister visibility. | 
| 96   virtual void WidgetRestored() = 0; | 99   virtual void WidgetRestored() = 0; | 
| 97   virtual void WidgetHidden() = 0; | 100   virtual void WidgetHidden() = 0; | 
| 98   virtual int VisibleWidgetCount() const = 0; | 101   virtual int VisibleWidgetCount() const = 0; | 
| 99 | 102 | 
| 100   // Indicates whether the current RenderProcessHost is associated with an | 103   // Indicates whether the current RenderProcessHost is associated with an | 
| 101   // isolated guest renderer process. Not all guest renderers are created equal. | 104   // isolated guest renderer process. Not all guest renderers are created equal. | 
| 102   // A guest, as indicated by BrowserPluginGuest::IsGuest, may coexist with | 105   // A guest, as indicated by BrowserPluginGuest::IsGuest, may coexist with | 
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 332   static void SetMaxRendererProcessCount(size_t count); | 335   static void SetMaxRendererProcessCount(size_t count); | 
| 333 | 336 | 
| 334   // Returns the current maximum number of renderer process hosts kept by the | 337   // Returns the current maximum number of renderer process hosts kept by the | 
| 335   // content module. | 338   // content module. | 
| 336   static size_t GetMaxRendererProcessCount(); | 339   static size_t GetMaxRendererProcessCount(); | 
| 337 }; | 340 }; | 
| 338 | 341 | 
| 339 }  // namespace content. | 342 }  // namespace content. | 
| 340 | 343 | 
| 341 #endif  // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 344 #endif  // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 
| OLD | NEW | 
|---|