| 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_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 // The page wants to transfer the request to a new renderer. | 288 // The page wants to transfer the request to a new renderer. |
| 289 virtual void RequestTransferURL( | 289 virtual void RequestTransferURL( |
| 290 const GURL& url, | 290 const GURL& url, |
| 291 const content::Referrer& referrer, | 291 const content::Referrer& referrer, |
| 292 WindowOpenDisposition disposition, | 292 WindowOpenDisposition disposition, |
| 293 int64 source_frame_id, | 293 int64 source_frame_id, |
| 294 const content::GlobalRequestID& old_request_id) {} | 294 const content::GlobalRequestID& old_request_id) {} |
| 295 | 295 |
| 296 // A javascript message, confirmation or prompt should be shown. | 296 // A javascript message, confirmation or prompt should be shown. |
| 297 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, | 297 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
| 298 const string16& message, | 298 const string16& message, |
| 299 const string16& default_prompt, | 299 const string16& default_prompt, |
| 300 const GURL& frame_url, | 300 const GURL& frame_url, |
| 301 ui::JavascriptMessageType type, | 301 ui::JavascriptMessageType type, |
| 302 IPC::Message* reply_msg, | 302 IPC::Message* reply_msg, |
| 303 bool* did_suppress_message) {} | 303 bool* did_suppress_message) {} |
| 304 | 304 |
| 305 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 305 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
| 306 const string16& message, | 306 const string16& message, |
| 307 IPC::Message* reply_msg) {} | 307 IPC::Message* reply_msg) {} |
| 308 | 308 |
| 309 // Return a dummy RendererPreferences object that will be used by the renderer | 309 // Return a dummy RendererPreferences object that will be used by the renderer |
| 310 // associated with the owning RenderViewHost. | 310 // associated with the owning RenderViewHost. |
| 311 virtual content::RendererPreferences GetRendererPrefs( | 311 virtual content::RendererPreferences GetRendererPrefs( |
| 312 content::BrowserContext* browser_context) const = 0; | 312 content::BrowserContext* browser_context) const = 0; |
| 313 | 313 |
| 314 // Returns a WebPreferences object that will be used by the renderer | 314 // Returns a WebPreferences object that will be used by the renderer |
| 315 // associated with the owning render view host. | 315 // associated with the owning render view host. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // Notification that the view has lost the mouse lock. | 399 // Notification that the view has lost the mouse lock. |
| 400 virtual void LostMouseLock() {} | 400 virtual void LostMouseLock() {} |
| 401 | 401 |
| 402 protected: | 402 protected: |
| 403 virtual ~RenderViewHostDelegate() {} | 403 virtual ~RenderViewHostDelegate() {} |
| 404 }; | 404 }; |
| 405 | 405 |
| 406 } // namespace content | 406 } // namespace content |
| 407 | 407 |
| 408 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 408 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |