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

Side by Side Diff: content/public/browser/render_view_host_delegate.h

Issue 9271054: Send replies to sync IPCs from swapped out renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send JS replies to right RVH. Created 8 years, 10 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
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 // The page wants to transfer the request to a new renderer. 288 // The page wants to transfer the request to a new renderer.
289 virtual void RequestTransferURL( 289 virtual void RequestTransferURL(
290 const GURL& url, 290 const GURL& url,
291 const content::Referrer& referrer, 291 const content::Referrer& referrer,
292 WindowOpenDisposition disposition, 292 WindowOpenDisposition disposition,
293 int64 source_frame_id, 293 int64 source_frame_id,
294 const content::GlobalRequestID& old_request_id) {} 294 const content::GlobalRequestID& old_request_id) {}
295 295
296 // A javascript message, confirmation or prompt should be shown. 296 // A javascript message, confirmation or prompt should be shown.
297 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, 297 virtual void RunJavaScriptMessage(RenderViewHost* rvh,
298 const string16& message, 298 const string16& message,
299 const string16& default_prompt, 299 const string16& default_prompt,
300 const GURL& frame_url, 300 const GURL& frame_url,
301 ui::JavascriptMessageType type, 301 ui::JavascriptMessageType type,
302 IPC::Message* reply_msg, 302 IPC::Message* reply_msg,
303 bool* did_suppress_message) {} 303 bool* did_suppress_message) {}
304 304
305 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, 305 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh,
306 const string16& message, 306 const string16& message,
307 IPC::Message* reply_msg) {} 307 IPC::Message* reply_msg) {}
308 308
309 // Return a dummy RendererPreferences object that will be used by the renderer 309 // Return a dummy RendererPreferences object that will be used by the renderer
310 // associated with the owning RenderViewHost. 310 // associated with the owning RenderViewHost.
311 virtual content::RendererPreferences GetRendererPrefs( 311 virtual content::RendererPreferences GetRendererPrefs(
312 content::BrowserContext* browser_context) const = 0; 312 content::BrowserContext* browser_context) const = 0;
313 313
314 // Returns a WebPreferences object that will be used by the renderer 314 // Returns a WebPreferences object that will be used by the renderer
315 // associated with the owning render view host. 315 // associated with the owning render view host.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // Notification that the view has lost the mouse lock. 399 // Notification that the view has lost the mouse lock.
400 virtual void LostMouseLock() {} 400 virtual void LostMouseLock() {}
401 401
402 protected: 402 protected:
403 virtual ~RenderViewHostDelegate() {} 403 virtual ~RenderViewHostDelegate() {}
404 }; 404 };
405 405
406 } // namespace content 406 } // namespace content
407 407
408 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 408 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698