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

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: Better message filtering approach. 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 WindowOpenDisposition disposition) {} 486 WindowOpenDisposition disposition) {}
487 487
488 // A message for external host. By default we ignore such messages. 488 // A message for external host. By default we ignore such messages.
489 // |receiver| can be a receiving script and |message| is any 489 // |receiver| can be a receiving script and |message| is any
490 // arbitrary string that makes sense to the receiver. 490 // arbitrary string that makes sense to the receiver.
491 virtual void ProcessExternalHostMessage(const std::string& message, 491 virtual void ProcessExternalHostMessage(const std::string& message,
492 const std::string& origin, 492 const std::string& origin,
493 const std::string& target) {} 493 const std::string& target) {}
494 494
495 // A javascript message, confirmation or prompt should be shown. 495 // A javascript message, confirmation or prompt should be shown.
496 virtual void RunJavaScriptMessage(const std::wstring& message, 496 virtual void RunJavaScriptMessage(const RenderViewHost* rvh,
497 const std::wstring& message,
497 const std::wstring& default_prompt, 498 const std::wstring& default_prompt,
498 const GURL& frame_url, 499 const GURL& frame_url,
499 const int flags, 500 const int flags,
500 IPC::Message* reply_msg, 501 IPC::Message* reply_msg,
501 bool* did_suppress_message) {} 502 bool* did_suppress_message) {}
502 503
503 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 504 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh,
505 const std::wstring& message,
504 IPC::Message* reply_msg) {} 506 IPC::Message* reply_msg) {}
505 507
506 // |url| is assigned to a server that can provide alternate error pages. If 508 // |url| is assigned to a server that can provide alternate error pages. If
507 // the returned URL is empty, the default error page built into WebKit will 509 // the returned URL is empty, the default error page built into WebKit will
508 // be used. 510 // be used.
509 virtual GURL GetAlternateErrorPageURL() const; 511 virtual GURL GetAlternateErrorPageURL() const;
510 512
511 // Return a dummy RendererPreferences object that will be used by the renderer 513 // Return a dummy RendererPreferences object that will be used by the renderer
512 // associated with the owning RenderViewHost. 514 // associated with the owning RenderViewHost.
513 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0; 515 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // Returns true if the delegate will take care of asking the user, otherwise 564 // Returns true if the delegate will take care of asking the user, otherwise
563 // the caller will do the default behavior. 565 // the caller will do the default behavior.
564 bool RequestDesktopNotificationPermission(const GURL& source_origin, 566 bool RequestDesktopNotificationPermission(const GURL& source_origin,
565 int callback_context); 567 int callback_context);
566 568
567 protected: 569 protected:
568 virtual ~RenderViewHostDelegate() {} 570 virtual ~RenderViewHostDelegate() {}
569 }; 571 };
570 572
571 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 573 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698