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 // |url| is assigned to a server that can provide alternate error pages. If | 522 // |url| is assigned to a server that can provide alternate error pages. If |
522 // the returned URL is empty, the default error page built into WebKit will | 523 // the returned URL is empty, the default error page built into WebKit will |
523 // be used. | 524 // be used. |
524 virtual GURL GetAlternateErrorPageURL() const; | 525 virtual GURL GetAlternateErrorPageURL() const; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 bool remember) {} | 572 bool remember) {} |
572 | 573 |
573 // Notification that a worker process has crashed. | 574 // Notification that a worker process has crashed. |
574 void WorkerCrashed() {} | 575 void WorkerCrashed() {} |
575 | 576 |
576 protected: | 577 protected: |
577 virtual ~RenderViewHostDelegate() {} | 578 virtual ~RenderViewHostDelegate() {} |
578 }; | 579 }; |
579 | 580 |
580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 581 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |