| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/process/kill.h" | 8 #include "base/process/kill.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual void RenderProcessExited(RenderProcessHost* host, | 49 virtual void RenderProcessExited(RenderProcessHost* host, |
| 50 base::TerminationStatus status, | 50 base::TerminationStatus status, |
| 51 int exit_code) {} | 51 int exit_code) {} |
| 52 | 52 |
| 53 // This method is invoked when the observed RenderProcessHost itself is | 53 // This method is invoked when the observed RenderProcessHost itself is |
| 54 // destroyed. This is guaranteed to be the last call made to the observer, so | 54 // destroyed. This is guaranteed to be the last call made to the observer, so |
| 55 // if the observer is tied to the observed RenderProcessHost, it is safe to | 55 // if the observer is tied to the observed RenderProcessHost, it is safe to |
| 56 // delete it. | 56 // delete it. |
| 57 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) {} | 57 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) {} |
| 58 | 58 |
| 59 // This method is invoked when the resource prefetcher driven from this |
| 60 // process has finished requesting subreqources. Currently a renderer process |
| 61 // can run only one instance of resource prefetcher. |
| 62 virtual void RenderProcessHostPrefetchFinished(RenderProcessHost* host) {} |
| 63 |
| 59 protected: | 64 protected: |
| 60 virtual ~RenderProcessHostObserver() {} | 65 virtual ~RenderProcessHostObserver() {} |
| 61 }; | 66 }; |
| 62 | 67 |
| 63 } // namespace content | 68 } // namespace content |
| 64 | 69 |
| 65 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ | 70 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_OBSERVER_H_ |
| OLD | NEW |