| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 const std::string& content); | 499 const std::string& content); |
| 500 void OnMsgForwardMessageToExternalHost(const std::string& message, | 500 void OnMsgForwardMessageToExternalHost(const std::string& message, |
| 501 const std::string& origin, | 501 const std::string& origin, |
| 502 const std::string& target); | 502 const std::string& target); |
| 503 #ifdef CHROME_PERSONALIZATION | 503 #ifdef CHROME_PERSONALIZATION |
| 504 void OnPersonalizationEvent(const std::string& message, | 504 void OnPersonalizationEvent(const std::string& message, |
| 505 const std::string& content); | 505 const std::string& content); |
| 506 #endif | 506 #endif |
| 507 void OnMsgGoToEntryAtOffset(int offset); | 507 void OnMsgGoToEntryAtOffset(int offset); |
| 508 void OnMsgSetTooltipText(const std::wstring& tooltip_text); | 508 void OnMsgSetTooltipText(const std::wstring& tooltip_text); |
| 509 void OnMsgSelectionChanged(); |
| 510 void OnMsgSetSelectionText(const std::string& text); |
| 511 void OnMsgPasteFromSelectionClipboard(); |
| 509 void OnMsgRunFileChooser(bool multiple_files, | 512 void OnMsgRunFileChooser(bool multiple_files, |
| 510 const std::wstring& title, | 513 const std::wstring& title, |
| 511 const std::wstring& default_file, | 514 const std::wstring& default_file, |
| 512 const std::wstring& filter); | 515 const std::wstring& filter); |
| 513 void OnMsgRunJavaScriptMessage(const std::wstring& message, | 516 void OnMsgRunJavaScriptMessage(const std::wstring& message, |
| 514 const std::wstring& default_prompt, | 517 const std::wstring& default_prompt, |
| 515 const GURL& frame_url, | 518 const GURL& frame_url, |
| 516 const int flags, | 519 const int flags, |
| 517 IPC::Message* reply_msg); | 520 IPC::Message* reply_msg); |
| 518 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, | 521 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 void OnQueryFormFieldAutofill(const std::wstring& field_name, | 561 void OnQueryFormFieldAutofill(const std::wstring& field_name, |
| 559 const std::wstring& user_text, | 562 const std::wstring& user_text, |
| 560 int64 node_id, | 563 int64 node_id, |
| 561 int request_id); | 564 int request_id); |
| 562 void OnRemoveAutofillEntry(const std::wstring& field_name, | 565 void OnRemoveAutofillEntry(const std::wstring& field_name, |
| 563 const std::wstring& value); | 566 const std::wstring& value); |
| 564 | 567 |
| 565 void OnExtensionRequest(const std::string& name, const std::string& args, | 568 void OnExtensionRequest(const std::string& name, const std::string& args, |
| 566 int callback_id); | 569 int callback_id); |
| 567 | 570 |
| 568 void OnPasteFromSelectionClipboard(); | |
| 569 | |
| 570 // Helper function to send a navigation message. If a cross-site request is | 571 // Helper function to send a navigation message. If a cross-site request is |
| 571 // in progress, we may be suspended while waiting for the onbeforeunload | 572 // in progress, we may be suspended while waiting for the onbeforeunload |
| 572 // handler, so this function might buffer the message rather than sending it. | 573 // handler, so this function might buffer the message rather than sending it. |
| 573 void DoNavigate(ViewMsg_Navigate* nav_message); | 574 void DoNavigate(ViewMsg_Navigate* nav_message); |
| 574 | 575 |
| 575 private: | 576 private: |
| 576 friend class TestRenderViewHost; | 577 friend class TestRenderViewHost; |
| 577 | 578 |
| 578 void UpdateBackForwardListCount(); | 579 void UpdateBackForwardListCount(); |
| 579 | 580 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 virtual ~RenderViewHostFactory() {} | 658 virtual ~RenderViewHostFactory() {} |
| 658 | 659 |
| 659 virtual RenderViewHost* CreateRenderViewHost( | 660 virtual RenderViewHost* CreateRenderViewHost( |
| 660 SiteInstance* instance, | 661 SiteInstance* instance, |
| 661 RenderViewHostDelegate* delegate, | 662 RenderViewHostDelegate* delegate, |
| 662 int routing_id, | 663 int routing_id, |
| 663 base::WaitableEvent* modal_dialog_event) = 0; | 664 base::WaitableEvent* modal_dialog_event) = 0; |
| 664 }; | 665 }; |
| 665 | 666 |
| 666 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 667 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |