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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 872 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
873 void OnGetApplicationInfo(int page_id); | 873 void OnGetApplicationInfo(int page_id); |
874 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 874 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
875 const std::vector<GURL>& links, | 875 const std::vector<GURL>& links, |
876 const std::vector<FilePath>& local_paths, | 876 const std::vector<FilePath>& local_paths, |
877 const FilePath& local_directory_name); | 877 const FilePath& local_directory_name); |
878 void OnHandleMessageFromExternalHost(const std::string& message, | 878 void OnHandleMessageFromExternalHost(const std::string& message, |
879 const std::string& origin, | 879 const std::string& origin, |
880 const std::string& target); | 880 const std::string& target); |
881 void OnInstallMissingPlugin(); | 881 void OnInstallMissingPlugin(); |
| 882 void OnDisplayPrerenderedPage(); |
882 void OnMediaPlayerActionAt(const gfx::Point& location, | 883 void OnMediaPlayerActionAt(const gfx::Point& location, |
883 const WebKit::WebMediaPlayerAction& action); | 884 const WebKit::WebMediaPlayerAction& action); |
884 void OnMoveOrResizeStarted(); | 885 void OnMoveOrResizeStarted(); |
885 void OnNavigate(const ViewMsg_Navigate_Params& params); | 886 void OnNavigate(const ViewMsg_Navigate_Params& params); |
886 void OnNotifyRendererViewType(ViewType::Type view_type); | 887 void OnNotifyRendererViewType(ViewType::Type view_type); |
887 void OnPaste(); | 888 void OnPaste(); |
888 #if defined(OS_MACOSX) | 889 #if defined(OS_MACOSX) |
889 void OnPluginImeCompositionConfirmed(const string16& text, int plugin_id); | 890 void OnPluginImeCompositionConfirmed(const string16& text, int plugin_id); |
890 #endif | 891 #endif |
891 void OnPrintingDone(int document_cookie, bool success); | 892 void OnPrintingDone(int document_cookie, bool success); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 WebKit::WebFrame* frame, | 984 WebKit::WebFrame* frame, |
984 const WebKit::WebPluginParams& params, | 985 const WebKit::WebPluginParams& params, |
985 const FilePath& path, | 986 const FilePath& path, |
986 webkit::ppapi::PluginModule* pepper_module); | 987 webkit::ppapi::PluginModule* pepper_module); |
987 | 988 |
988 WebKit::WebPlugin* CreatePluginPlaceholder( | 989 WebKit::WebPlugin* CreatePluginPlaceholder( |
989 WebKit::WebFrame* frame, | 990 WebKit::WebFrame* frame, |
990 const WebKit::WebPluginParams& params, | 991 const WebKit::WebPluginParams& params, |
991 const webkit::npapi::PluginGroup& group, | 992 const webkit::npapi::PluginGroup& group, |
992 int resource_id, | 993 int resource_id, |
993 int message_id); | 994 int message_id, |
| 995 bool is_blocked_for_prerendering); |
994 | 996 |
995 // Sends an IPC notification that the specified content type was blocked. | 997 // Sends an IPC notification that the specified content type was blocked. |
996 // If the content type requires it, |resource_identifier| names the specific | 998 // If the content type requires it, |resource_identifier| names the specific |
997 // resource that was blocked (the plugin path in the case of plugins), | 999 // resource that was blocked (the plugin path in the case of plugins), |
998 // otherwise it's the empty string. | 1000 // otherwise it's the empty string. |
999 void DidBlockContentType(ContentSettingsType settings_type, | 1001 void DidBlockContentType(ContentSettingsType settings_type, |
1000 const std::string& resource_identifier); | 1002 const std::string& resource_identifier); |
1001 | 1003 |
1002 // This callback is triggered when DownloadImage completes, either | 1004 // This callback is triggered when DownloadImage completes, either |
1003 // succesfully or with a failure. See DownloadImage for more details. | 1005 // succesfully or with a failure. See DownloadImage for more details. |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 // bunch of stuff, you should probably create a helper class and put your | 1466 // bunch of stuff, you should probably create a helper class and put your |
1465 // data and methods on that to avoid bloating RenderView more. You can use | 1467 // data and methods on that to avoid bloating RenderView more. You can use |
1466 // the Observer interface to filter IPC messages and receive frame change | 1468 // the Observer interface to filter IPC messages and receive frame change |
1467 // notifications. | 1469 // notifications. |
1468 // --------------------------------------------------------------------------- | 1470 // --------------------------------------------------------------------------- |
1469 | 1471 |
1470 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1472 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1471 }; | 1473 }; |
1472 | 1474 |
1473 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1475 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |