| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 virtual void RequestTransferURL( | 323 virtual void RequestTransferURL( |
| 324 const GURL& url, | 324 const GURL& url, |
| 325 const content::Referrer& referrer, | 325 const content::Referrer& referrer, |
| 326 WindowOpenDisposition disposition, | 326 WindowOpenDisposition disposition, |
| 327 int64 source_frame_id, | 327 int64 source_frame_id, |
| 328 const content::GlobalRequestID& old_request_id) {} | 328 const content::GlobalRequestID& old_request_id) {} |
| 329 | 329 |
| 330 // The page wants to close the active view in this tab. | 330 // The page wants to close the active view in this tab. |
| 331 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 331 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
| 332 | 332 |
| 333 // The page is asking whether to ignore the navigation. |
| 334 virtual bool ShouldIgnoreNavigation( |
| 335 RenderViewHost* rvh, |
| 336 const GURL& url, |
| 337 const content::Referrer& referrer, |
| 338 bool is_content_initiated); |
| 339 |
| 333 // A javascript message, confirmation or prompt should be shown. | 340 // A javascript message, confirmation or prompt should be shown. |
| 334 virtual void RunJavaScriptMessage(RenderViewHost* rvh, | 341 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
| 335 const string16& message, | 342 const string16& message, |
| 336 const string16& default_prompt, | 343 const string16& default_prompt, |
| 337 const GURL& frame_url, | 344 const GURL& frame_url, |
| 338 ui::JavascriptMessageType type, | 345 ui::JavascriptMessageType type, |
| 339 IPC::Message* reply_msg, | 346 IPC::Message* reply_msg, |
| 340 bool* did_suppress_message) {} | 347 bool* did_suppress_message) {} |
| 341 | 348 |
| 342 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, | 349 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 // Notification that the view has lost the mouse lock. | 442 // Notification that the view has lost the mouse lock. |
| 436 virtual void LostMouseLock() {} | 443 virtual void LostMouseLock() {} |
| 437 | 444 |
| 438 protected: | 445 protected: |
| 439 virtual ~RenderViewHostDelegate() {} | 446 virtual ~RenderViewHostDelegate() {} |
| 440 }; | 447 }; |
| 441 | 448 |
| 442 } // namespace content | 449 } // namespace content |
| 443 | 450 |
| 444 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 451 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |