OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 // page. This is used to avoid uninitiated user downloads (aka carpet | 539 // page. This is used to avoid uninitiated user downloads (aka carpet |
540 // bombing), see DownloadRequestLimiter for details. | 540 // bombing), see DownloadRequestLimiter for details. |
541 virtual void OnUserGesture() {} | 541 virtual void OnUserGesture() {} |
542 | 542 |
543 // Notification from the renderer host that blocked UI event occurred. | 543 // Notification from the renderer host that blocked UI event occurred. |
544 // This happens when there are tab-modal dialogs. In this case, the | 544 // This happens when there are tab-modal dialogs. In this case, the |
545 // notification is needed to let us draw attention to the dialog (i.e. | 545 // notification is needed to let us draw attention to the dialog (i.e. |
546 // refocus on the modal dialog, flash title etc). | 546 // refocus on the modal dialog, flash title etc). |
547 virtual void OnIgnoredUIEvent() {} | 547 virtual void OnIgnoredUIEvent() {} |
548 | 548 |
549 // Notification from the renderer that JS runs out of memory. | |
550 virtual void OnJSOutOfMemory() {} | |
551 | |
552 // Notification that the renderer has become unresponsive. The | 549 // Notification that the renderer has become unresponsive. The |
553 // delegate can use this notification to show a warning to the user. | 550 // delegate can use this notification to show a warning to the user. |
554 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 551 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
555 bool is_during_unload) {} | 552 bool is_during_unload) {} |
556 | 553 |
557 // Notification that a previously unresponsive renderer has become | 554 // Notification that a previously unresponsive renderer has become |
558 // responsive again. The delegate can use this notification to end the | 555 // responsive again. The delegate can use this notification to end the |
559 // warning shown to the user. | 556 // warning shown to the user. |
560 virtual void RendererResponsive(RenderViewHost* render_view_host) {} | 557 virtual void RendererResponsive(RenderViewHost* render_view_host) {} |
561 | 558 |
(...skipping 16 matching lines...) Expand all Loading... |
578 bool remember) {} | 575 bool remember) {} |
579 | 576 |
580 // Notification that a worker process has crashed. | 577 // Notification that a worker process has crashed. |
581 void WorkerCrashed() {} | 578 void WorkerCrashed() {} |
582 | 579 |
583 protected: | 580 protected: |
584 virtual ~RenderViewHostDelegate() {} | 581 virtual ~RenderViewHostDelegate() {} |
585 }; | 582 }; |
586 | 583 |
587 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 584 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |