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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 IPC::Message* reply_msg, | 515 IPC::Message* reply_msg, |
516 bool* did_suppress_message) {} | 516 bool* did_suppress_message) {} |
517 | 517 |
518 virtual void RunBeforeUnloadConfirm(const std::wstring& message, | 518 virtual void RunBeforeUnloadConfirm(const std::wstring& message, |
519 IPC::Message* reply_msg) {} | 519 IPC::Message* reply_msg) {} |
520 | 520 |
521 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, | |
522 const std::string& json_arguments, | |
523 IPC::Message* reply_msg) {} | |
524 | |
525 // |url| is assigned to a server that can provide alternate error pages. If | 521 // |url| is assigned to a server that can provide alternate error pages. If |
526 // the returned URL is empty, the default error page built into WebKit will | 522 // the returned URL is empty, the default error page built into WebKit will |
527 // be used. | 523 // be used. |
528 virtual GURL GetAlternateErrorPageURL() const; | 524 virtual GURL GetAlternateErrorPageURL() const; |
529 | 525 |
530 // Return a dummy RendererPreferences object that will be used by the renderer | 526 // Return a dummy RendererPreferences object that will be used by the renderer |
531 // associated with the owning RenderViewHost. | 527 // associated with the owning RenderViewHost. |
532 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0; | 528 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0; |
533 | 529 |
534 // Returns a WebPreferences object that will be used by the renderer | 530 // Returns a WebPreferences object that will be used by the renderer |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 bool remember) {} | 571 bool remember) {} |
576 | 572 |
577 // Notification that a worker process has crashed. | 573 // Notification that a worker process has crashed. |
578 void WorkerCrashed() {} | 574 void WorkerCrashed() {} |
579 | 575 |
580 protected: | 576 protected: |
581 virtual ~RenderViewHostDelegate() {} | 577 virtual ~RenderViewHostDelegate() {} |
582 }; | 578 }; |
583 | 579 |
584 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |