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

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

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. Created 9 years, 7 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) 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 WindowOpenDisposition disposition) {} 469 WindowOpenDisposition disposition) {}
470 470
471 // A message for external host. By default we ignore such messages. 471 // A message for external host. By default we ignore such messages.
472 // |receiver| can be a receiving script and |message| is any 472 // |receiver| can be a receiving script and |message| is any
473 // arbitrary string that makes sense to the receiver. 473 // arbitrary string that makes sense to the receiver.
474 virtual void ProcessExternalHostMessage(const std::string& message, 474 virtual void ProcessExternalHostMessage(const std::string& message,
475 const std::string& origin, 475 const std::string& origin,
476 const std::string& target) {} 476 const std::string& target) {}
477 477
478 // A javascript message, confirmation or prompt should be shown. 478 // A javascript message, confirmation or prompt should be shown.
479 virtual void RunJavaScriptMessage(const std::wstring& message, 479 virtual void RunJavaScriptMessage(const RenderViewHost* rvh,
480 const std::wstring& message,
480 const std::wstring& default_prompt, 481 const std::wstring& default_prompt,
481 const GURL& frame_url, 482 const GURL& frame_url,
482 const int flags, 483 const int flags,
483 IPC::Message* reply_msg, 484 IPC::Message* reply_msg,
484 bool* did_suppress_message) {} 485 bool* did_suppress_message) {}
485 486
486 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 487 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh,
488 const std::wstring& message,
487 IPC::Message* reply_msg) {} 489 IPC::Message* reply_msg) {}
488 490
489 // |url| is assigned to a server that can provide alternate error pages. If 491 // |url| is assigned to a server that can provide alternate error pages. If
490 // the returned URL is empty, the default error page built into WebKit will 492 // the returned URL is empty, the default error page built into WebKit will
491 // be used. 493 // be used.
492 virtual GURL GetAlternateErrorPageURL() const; 494 virtual GURL GetAlternateErrorPageURL() const;
493 495
494 // Return a dummy RendererPreferences object that will be used by the renderer 496 // Return a dummy RendererPreferences object that will be used by the renderer
495 // associated with the owning RenderViewHost. 497 // associated with the owning RenderViewHost.
496 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0; 498 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // Returns true if the delegate will take care of asking the user, otherwise 547 // Returns true if the delegate will take care of asking the user, otherwise
546 // the caller will do the default behavior. 548 // the caller will do the default behavior.
547 bool RequestDesktopNotificationPermission(const GURL& source_origin, 549 bool RequestDesktopNotificationPermission(const GURL& source_origin,
548 int callback_context); 550 int callback_context);
549 551
550 protected: 552 protected:
551 virtual ~RenderViewHostDelegate() {} 553 virtual ~RenderViewHostDelegate() {}
552 }; 554 };
553 555
554 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 556 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/render_view_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698