| 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // | 72 // |
| 73 // This interface currently encompasses every type of message that was | 73 // This interface currently encompasses every type of message that was |
| 74 // previously being sent by WebContents itself. Some of these notifications | 74 // previously being sent by WebContents itself. Some of these notifications |
| 75 // may not be relevant to all users of RenderViewHost and we should consider | 75 // may not be relevant to all users of RenderViewHost and we should consider |
| 76 // exposing a more generic Send function on RenderViewHost and a response | 76 // exposing a more generic Send function on RenderViewHost and a response |
| 77 // listener here to serve that need. | 77 // listener here to serve that need. |
| 78 class CONTENT_EXPORT RenderViewHostDelegate { | 78 class CONTENT_EXPORT RenderViewHostDelegate { |
| 79 public: | 79 public: |
| 80 // RendererManagerment ------------------------------------------------------- | 80 // RendererManagerment ------------------------------------------------------- |
| 81 // Functions for managing switching of Renderers. For WebContents, this is | 81 // Functions for managing switching of Renderers. For WebContents, this is |
| 82 // implemented by the RenderViewHostManager. | 82 // implemented by the RenderFrameHostManager. |
| 83 | 83 |
| 84 class CONTENT_EXPORT RendererManagement { | 84 class CONTENT_EXPORT RendererManagement { |
| 85 public: | 85 public: |
| 86 // Notification whether we should close the page, after an explicit call to | 86 // Notification whether we should close the page, after an explicit call to |
| 87 // AttemptToClosePage. This is called before a cross-site request or before | 87 // AttemptToClosePage. This is called before a cross-site request or before |
| 88 // a tab/window is closed (as indicated by the first parameter) to allow the | 88 // a tab/window is closed (as indicated by the first parameter) to allow the |
| 89 // appropriate renderer to approve or deny the request. |proceed| indicates | 89 // appropriate renderer to approve or deny the request. |proceed| indicates |
| 90 // whether the user chose to proceed. |proceed_time| is the time when the | 90 // whether the user chose to proceed. |proceed_time| is the time when the |
| 91 // request was allowed to proceed. | 91 // request was allowed to proceed. |
| 92 virtual void ShouldClosePage( | 92 virtual void ShouldClosePage( |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // created by the RenderViewHost. | 451 // created by the RenderViewHost. |
| 452 virtual FrameTree* GetFrameTree(); | 452 virtual FrameTree* GetFrameTree(); |
| 453 | 453 |
| 454 protected: | 454 protected: |
| 455 virtual ~RenderViewHostDelegate() {} | 455 virtual ~RenderViewHostDelegate() {} |
| 456 }; | 456 }; |
| 457 | 457 |
| 458 } // namespace content | 458 } // namespace content |
| 459 | 459 |
| 460 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 460 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |