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

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

Issue 6627063: Ignore JavaScript messages (alert/confirm/prompt) during unload handlers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added a browsertest Created 9 years, 9 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 // arbitrary string that makes sense to the receiver. 505 // arbitrary string that makes sense to the receiver.
506 virtual void ProcessExternalHostMessage(const std::string& message, 506 virtual void ProcessExternalHostMessage(const std::string& message,
507 const std::string& origin, 507 const std::string& origin,
508 const std::string& target) {} 508 const std::string& target) {}
509 509
510 // A javascript message, confirmation or prompt should be shown. 510 // A javascript message, confirmation or prompt should be shown.
511 virtual void RunJavaScriptMessage(const std::wstring& message, 511 virtual void RunJavaScriptMessage(const std::wstring& message,
512 const std::wstring& default_prompt, 512 const std::wstring& default_prompt,
513 const GURL& frame_url, 513 const GURL& frame_url,
514 const int flags, 514 const int flags,
515 const bool unload_handler_being_run,
515 IPC::Message* reply_msg, 516 IPC::Message* reply_msg,
516 bool* did_suppress_message) {} 517 bool* did_suppress_message) {}
517 518
518 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 519 virtual void RunBeforeUnloadConfirm(const std::wstring& message,
519 IPC::Message* reply_msg) {} 520 IPC::Message* reply_msg) {}
520 521
521 // |url| is assigned to a server that can provide alternate error pages. If 522 // |url| is assigned to a server that can provide alternate error pages. If
522 // the returned URL is empty, the default error page built into WebKit will 523 // the returned URL is empty, the default error page built into WebKit will
523 // be used. 524 // be used.
524 virtual GURL GetAlternateErrorPageURL() const; 525 virtual GURL GetAlternateErrorPageURL() const;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 bool remember) {} 572 bool remember) {}
572 573
573 // Notification that a worker process has crashed. 574 // Notification that a worker process has crashed.
574 void WorkerCrashed() {} 575 void WorkerCrashed() {}
575 576
576 protected: 577 protected:
577 virtual ~RenderViewHostDelegate() {} 578 virtual ~RenderViewHostDelegate() {}
578 }; 579 };
579 580
580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 581 #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/tab_contents/background_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698