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

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

Issue 4088: Move a bunch of stuff out of WebContents. I removed a bunch of render view ho... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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) 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_RENDER_VIEW_HOST_H__ 5 #ifndef CHROME_BROWSER_RENDER_VIEW_HOST_H__
6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__ 6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void SetNavigationsSuspended(bool suspend); 130 void SetNavigationsSuspended(bool suspend);
131 131
132 // Causes the renderer to invoke the onbeforeunload event handler. The 132 // Causes the renderer to invoke the onbeforeunload event handler. The
133 // result will be returned via ViewMsg_ShouldClose. 133 // result will be returned via ViewMsg_ShouldClose.
134 virtual void FirePageBeforeUnload(); 134 virtual void FirePageBeforeUnload();
135 135
136 // Close the page after the page has responded that it can be closed via 136 // Close the page after the page has responded that it can be closed via
137 // ViewMsg_ShouldClose. This is where the page itself is closed. The 137 // ViewMsg_ShouldClose. This is where the page itself is closed. The
138 // unload handler is triggered here, which can block with a dialog, but cannot 138 // unload handler is triggered here, which can block with a dialog, but cannot
139 // cancel the close of the page. 139 // cancel the close of the page.
140 virtual void FirePageUnload(); 140 void FirePageUnload();
141 141
142 // Close the page ignoring whether it has unload events registers. 142 // Close the page ignoring whether it has unload events registers.
143 // This is called after the beforeunload and unload events have fired 143 // This is called after the beforeunload and unload events have fired
144 // and the user has agreed to continue with closing the page. 144 // and the user has agreed to continue with closing the page.
145 static void ClosePageIgnoringUnloadEvents(int render_process_host_id, 145 static void ClosePageIgnoringUnloadEvents(int render_process_host_id,
146 int request_id); 146 int request_id);
147 147
148 // Causes the renderer to close the current page, including running its 148 // Causes the renderer to close the current page, including running its
149 // onunload event handler. A ClosePage_ACK message will be sent to the 149 // onunload event handler. A ClosePage_ACK message will be sent to the
150 // ResourceDispatcherHost when it is finished. |new_render_process_host_id| 150 // ResourceDispatcherHost when it is finished. |new_render_process_host_id|
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // D&d drop target messages that get sent to WebKit. 208 // D&d drop target messages that get sent to WebKit.
209 void DragTargetDragEnter(const WebDropData& drop_data, 209 void DragTargetDragEnter(const WebDropData& drop_data,
210 const gfx::Point& client_pt, 210 const gfx::Point& client_pt,
211 const gfx::Point& screen_pt); 211 const gfx::Point& screen_pt);
212 void DragTargetDragOver(const gfx::Point& client_pt, 212 void DragTargetDragOver(const gfx::Point& client_pt,
213 const gfx::Point& screen_pt); 213 const gfx::Point& screen_pt);
214 void DragTargetDragLeave(); 214 void DragTargetDragLeave();
215 void DragTargetDrop(const gfx::Point& client_pt, 215 void DragTargetDrop(const gfx::Point& client_pt,
216 const gfx::Point& screen_pt); 216 const gfx::Point& screen_pt);
217 217
218 // Uploads a file by automatically completing a form within the page and
219 // submitting it.
220 void UploadFile(const std::wstring& file_path,
221 const std::wstring& form,
222 const std::wstring& file,
223 const std::wstring& submit,
224 const std::wstring& other_values);
225
226 // Tell the RenderView to reserve a range of page ids of the given size. 218 // Tell the RenderView to reserve a range of page ids of the given size.
227 void ReservePageIDRange(int size); 219 void ReservePageIDRange(int size);
228 220
229 // Runs some javascript within the context of a frame in the page. 221 // Runs some javascript within the context of a frame in the page.
230 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath, 222 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath,
231 const std::wstring& jscript); 223 const std::wstring& jscript);
232 224
233 // Logs a message to the console of a frame in the page. 225 // Logs a message to the console of a frame in the page.
234 void AddMessageToConsole(const std::wstring& frame_xpath, 226 void AddMessageToConsole(const std::wstring& frame_xpath,
235 const std::wstring& msg, 227 const std::wstring& msg,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // Override the RenderWidgetHost's Shutdown method. 331 // Override the RenderWidgetHost's Shutdown method.
340 virtual void Shutdown(); 332 virtual void Shutdown();
341 333
342 // Tells the renderer view to focus the first (last if reverse is true) node. 334 // Tells the renderer view to focus the first (last if reverse is true) node.
343 void SetInitialFocus(bool reverse); 335 void SetInitialFocus(bool reverse);
344 336
345 // Update render view specific (WebKit) preferences. 337 // Update render view specific (WebKit) preferences.
346 void UpdateWebPreferences(const WebPreferences& prefs); 338 void UpdateWebPreferences(const WebPreferences& prefs);
347 339
348 // Request the Renderer to ask the default plugin to start installation of 340 // Request the Renderer to ask the default plugin to start installation of
349 // missing plugin. 341 // missing plugin. Called by PluginInstaller.
350 void InstallMissingPlugin(); 342 void InstallMissingPlugin();
351 343
352 // Get all savable resource links from current webpage, include main 344 // Get all savable resource links from current webpage, include main
353 // frame and sub-frame. 345 // frame and sub-frame.
354 void GetAllSavableResourceLinksForCurrentPage(const GURL& page_url); 346 void GetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
355 347
356 // Get html data by serializing all frames of current page with lists 348 // Get html data by serializing all frames of current page with lists
357 // which contain all resource links that have local copy. 349 // which contain all resource links that have local copy.
358 // The parameter links contain original URLs of all saved links. 350 // The parameter links contain original URLs of all saved links.
359 // The parameter local_paths contain corresponding local file paths of 351 // The parameter local_paths contain corresponding local file paths of
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 575
584 virtual RenderViewHost* CreateRenderViewHost( 576 virtual RenderViewHost* CreateRenderViewHost(
585 SiteInstance* instance, 577 SiteInstance* instance,
586 RenderViewHostDelegate* delegate, 578 RenderViewHostDelegate* delegate,
587 int routing_id, 579 int routing_id,
588 HANDLE modal_dialog_event) = 0; 580 HANDLE modal_dialog_event) = 0;
589 }; 581 };
590 582
591 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ 583 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__
592 584
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698