Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 6368011: Clean up WebNavigationObserver by taking out password specific callbacks, and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // Sends a response to an extension api call that it was blocked for lack of 467 // Sends a response to an extension api call that it was blocked for lack of
468 // permission. 468 // permission.
469 void BlockExtensionRequest(int request_id); 469 void BlockExtensionRequest(int request_id);
470 470
471 // Tells the renderer which browser window it is being attached to. 471 // Tells the renderer which browser window it is being attached to.
472 void UpdateBrowserWindowId(int window_id); 472 void UpdateBrowserWindowId(int window_id);
473 473
474 // Tells the render view that a custom context action has been selected. 474 // Tells the render view that a custom context action has been selected.
475 void PerformCustomContextMenuAction(unsigned action); 475 void PerformCustomContextMenuAction(unsigned action);
476 476
477 // Tells the renderer to translate the current page from one language to
478 // another. If the current page id is not |page_id|, the request is ignored.
479 // |translate_script| is the script that should be injected in the page to
480 // perform the translation.
481 void TranslatePage(int page_id,
482 const std::string& translate_script,
483 const std::string& source_lang,
484 const std::string& target_lang);
485
486 // Reverts the text of current page to its original (non-translated) contents.
487 void RevertTranslation(int page_id);
488
489 // Informs renderer of updated content settings. 477 // Informs renderer of updated content settings.
490 void SendContentSettings(const GURL& url, 478 void SendContentSettings(const GURL& url,
491 const ContentSettings& settings); 479 const ContentSettings& settings);
492 480
493 // Tells the renderer to notify us when the page contents preferred size 481 // Tells the renderer to notify us when the page contents preferred size
494 // changed. |flags| is a combination of 482 // changed. |flags| is a combination of
495 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined 483 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined
496 // in render_messages.h. 484 // in render_messages.h.
497 void EnablePreferredSizeChangedMode(int flags); 485 void EnablePreferredSizeChangedMode(int flags);
498 486
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 const std::wstring& default_prompt, 602 const std::wstring& default_prompt,
615 const GURL& frame_url, 603 const GURL& frame_url,
616 const int flags, 604 const int flags,
617 IPC::Message* reply_msg); 605 IPC::Message* reply_msg);
618 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, 606 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url,
619 const std::wstring& message, 607 const std::wstring& message,
620 IPC::Message* reply_msg); 608 IPC::Message* reply_msg);
621 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height, 609 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height,
622 const std::string& json_arguments, 610 const std::string& json_arguments,
623 IPC::Message* reply_msg); 611 IPC::Message* reply_msg);
624 void OnMsgPasswordFormsFound(
625 const std::vector<webkit_glue::PasswordForm>& forms);
626 void OnMsgPasswordFormsVisible(
627 const std::vector<webkit_glue::PasswordForm>& visible_forms);
628 void OnMsgStartDragging(const WebDropData& drop_data, 612 void OnMsgStartDragging(const WebDropData& drop_data,
629 WebKit::WebDragOperationsMask operations_allowed, 613 WebKit::WebDragOperationsMask operations_allowed,
630 const SkBitmap& image, 614 const SkBitmap& image,
631 const gfx::Point& image_offset); 615 const gfx::Point& image_offset);
632 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); 616 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation);
633 void OnTakeFocus(bool reverse); 617 void OnTakeFocus(bool reverse);
634 void OnMsgPageHasOSDD(int32 page_id, 618 void OnMsgPageHasOSDD(int32 page_id,
635 const GURL& doc_url, 619 const GURL& doc_url,
636 const ViewHostMsg_PageHasOSDD_Type& provider_type); 620 const ViewHostMsg_PageHasOSDD_Type& provider_type);
637 void OnDidGetPrintedPagesCount(int cookie, int number_pages); 621 void OnDidGetPrintedPagesCount(int cookie, int number_pages);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // The most recently received accessibility tree - for unit testing only. 772 // The most recently received accessibility tree - for unit testing only.
789 webkit_glue::WebAccessibility accessibility_tree_; 773 webkit_glue::WebAccessibility accessibility_tree_;
790 774
791 // The termination status of the last render view that terminated. 775 // The termination status of the last render view that terminated.
792 base::TerminationStatus render_view_termination_status_; 776 base::TerminationStatus render_view_termination_status_;
793 777
794 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 778 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
795 }; 779 };
796 780
797 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 781 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager_unittest.cc ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698