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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 const content::GlobalRequestID& old_request_id) {} | 329 const content::GlobalRequestID& old_request_id) {} |
330 | 330 |
331 // The page wants to close the active view in this tab. | 331 // The page wants to close the active view in this tab. |
332 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 332 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
333 | 333 |
334 // The page wants to post a message to the active view in this tab. | 334 // The page wants to post a message to the active view in this tab. |
335 virtual void RouteMessageEvent( | 335 virtual void RouteMessageEvent( |
336 RenderViewHost* rvh, | 336 RenderViewHost* rvh, |
337 const ViewMsg_PostMessage_Params& params) {} | 337 const ViewMsg_PostMessage_Params& params) {} |
338 | 338 |
| 339 // The page is asking whether to ignore the navigation. |
| 340 virtual bool ShouldIgnoreNavigation( |
| 341 RenderViewHost* rvh, |
| 342 const GURL& url, |
| 343 const content::Referrer& referrer, |
| 344 bool is_content_initiated); |
| 345 |
339 // A javascript message, confirmation or prompt should be shown. | 346 // A javascript message, confirmation or prompt should be shown. |
340 virtual void RunJavaScriptMessage(RenderViewHost* rvh, | 347 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
341 const string16& message, | 348 const string16& message, |
342 const string16& default_prompt, | 349 const string16& default_prompt, |
343 const GURL& frame_url, | 350 const GURL& frame_url, |
344 ui::JavascriptMessageType type, | 351 ui::JavascriptMessageType type, |
345 IPC::Message* reply_msg, | 352 IPC::Message* reply_msg, |
346 bool* did_suppress_message) {} | 353 bool* did_suppress_message) {} |
347 | 354 |
348 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, | 355 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // Notification that the view has lost the mouse lock. | 435 // Notification that the view has lost the mouse lock. |
429 virtual void LostMouseLock() {} | 436 virtual void LostMouseLock() {} |
430 | 437 |
431 protected: | 438 protected: |
432 virtual ~RenderViewHostDelegate() {} | 439 virtual ~RenderViewHostDelegate() {} |
433 }; | 440 }; |
434 | 441 |
435 } // namespace content | 442 } // namespace content |
436 | 443 |
437 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 444 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |