| 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 virtual void TakeFocus(bool reverse) = 0; | 153 virtual void TakeFocus(bool reverse) = 0; |
| 154 | 154 |
| 155 protected: | 155 protected: |
| 156 virtual ~View() {} | 156 virtual ~View() {} |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 // RendererManagerment ------------------------------------------------------- | 159 // RendererManagerment ------------------------------------------------------- |
| 160 // Functions for managing switching of Renderers. For TabContents, this is | 160 // Functions for managing switching of Renderers. For TabContents, this is |
| 161 // implemented by the RenderViewHostManager | 161 // implemented by the RenderViewHostManager |
| 162 | 162 |
| 163 class RendererManagement { | 163 class CONTENT_EXPORT RendererManagement { |
| 164 public: | 164 public: |
| 165 // Notification whether we should close the page, after an explicit call to | 165 // Notification whether we should close the page, after an explicit call to |
| 166 // AttemptToClosePage. This is called before a cross-site request or before | 166 // AttemptToClosePage. This is called before a cross-site request or before |
| 167 // a tab/window is closed (as indicated by the first parameter) to allow the | 167 // a tab/window is closed (as indicated by the first parameter) to allow the |
| 168 // appropriate renderer to approve or deny the request. |proceed| indicates | 168 // appropriate renderer to approve or deny the request. |proceed| indicates |
| 169 // whether the user chose to proceed. | 169 // whether the user chose to proceed. |
| 170 virtual void ShouldClosePage(bool for_cross_site_transition, | 170 virtual void ShouldClosePage(bool for_cross_site_transition, |
| 171 bool proceed) = 0; | 171 bool proceed) = 0; |
| 172 | 172 |
| 173 // Called by ResourceDispatcherHost when a response for a pending cross-site | 173 // Called by ResourceDispatcherHost when a response for a pending cross-site |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 // Notification message from HTML UI. | 380 // Notification message from HTML UI. |
| 381 virtual void WebUISend(RenderViewHost* render_view_host, | 381 virtual void WebUISend(RenderViewHost* render_view_host, |
| 382 const GURL& source_url, | 382 const GURL& source_url, |
| 383 const std::string& name, | 383 const std::string& name, |
| 384 const base::ListValue& args) {} | 384 const base::ListValue& args) {} |
| 385 protected: | 385 protected: |
| 386 virtual ~RenderViewHostDelegate() {} | 386 virtual ~RenderViewHostDelegate() {} |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |