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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 // arbitrary string that makes sense to the receiver. | 505 // arbitrary string that makes sense to the receiver. |
506 virtual void ProcessExternalHostMessage(const std::string& message, | 506 virtual void ProcessExternalHostMessage(const std::string& message, |
507 const std::string& origin, | 507 const std::string& origin, |
508 const std::string& target) {} | 508 const std::string& target) {} |
509 | 509 |
510 // A javascript message, confirmation or prompt should be shown. | 510 // A javascript message, confirmation or prompt should be shown. |
511 virtual void RunJavaScriptMessage(const std::wstring& message, | 511 virtual void RunJavaScriptMessage(const std::wstring& message, |
512 const std::wstring& default_prompt, | 512 const std::wstring& default_prompt, |
513 const GURL& frame_url, | 513 const GURL& frame_url, |
514 const int flags, | 514 const int flags, |
| 515 const bool unload_handler_being_run, |
515 IPC::Message* reply_msg, | 516 IPC::Message* reply_msg, |
516 bool* did_suppress_message) {} | 517 bool* did_suppress_message) {} |
517 | 518 |
518 virtual void RunBeforeUnloadConfirm(const std::wstring& message, | 519 virtual void RunBeforeUnloadConfirm(const std::wstring& message, |
519 IPC::Message* reply_msg) {} | 520 IPC::Message* reply_msg) {} |
520 | 521 |
521 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, | 522 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, |
522 const std::string& json_arguments, | 523 const std::string& json_arguments, |
523 IPC::Message* reply_msg) {} | 524 IPC::Message* reply_msg) {} |
524 | 525 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 bool remember) {} | 576 bool remember) {} |
576 | 577 |
577 // Notification that a worker process has crashed. | 578 // Notification that a worker process has crashed. |
578 void WorkerCrashed() {} | 579 void WorkerCrashed() {} |
579 | 580 |
580 protected: | 581 protected: |
581 virtual ~RenderViewHostDelegate() {} | 582 virtual ~RenderViewHostDelegate() {} |
582 }; | 583 }; |
583 | 584 |
584 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 585 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |