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

Side by Side Diff: content/browser/tab_contents/background_contents.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_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual ViewType::Type GetRenderViewType() const; 65 virtual ViewType::Type GetRenderViewType() const;
66 virtual int GetBrowserWindowID() const; 66 virtual int GetBrowserWindowID() const;
67 virtual void DidNavigate(RenderViewHost* render_view_host, 67 virtual void DidNavigate(RenderViewHost* render_view_host,
68 const ViewHostMsg_FrameNavigate_Params& params); 68 const ViewHostMsg_FrameNavigate_Params& params);
69 virtual WebPreferences GetWebkitPrefs(); 69 virtual WebPreferences GetWebkitPrefs();
70 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params); 70 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params);
71 virtual void RunJavaScriptMessage(const std::wstring& message, 71 virtual void RunJavaScriptMessage(const std::wstring& message,
72 const std::wstring& default_prompt, 72 const std::wstring& default_prompt,
73 const GURL& frame_url, 73 const GURL& frame_url,
74 const int flags, 74 const int flags,
75 const bool unload_handler_being_run,
75 IPC::Message* reply_msg, 76 IPC::Message* reply_msg,
76 bool* did_suppress_message); 77 bool* did_suppress_message);
77 virtual void Close(RenderViewHost* render_view_host); 78 virtual void Close(RenderViewHost* render_view_host);
78 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 79 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
79 virtual void RenderViewGone(RenderViewHost* rvh, 80 virtual void RenderViewGone(RenderViewHost* rvh,
80 base::TerminationStatus status, 81 base::TerminationStatus status,
81 int error_code); 82 int error_code);
82 virtual bool OnMessageReceived(const IPC::Message& message); 83 virtual bool OnMessageReceived(const IPC::Message& message);
83 84
84 // RenderViewHostDelegate::View 85 // RenderViewHostDelegate::View
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 BackgroundContents* contents; 178 BackgroundContents* contents;
178 179
179 // The name of the parent frame for these contents. 180 // The name of the parent frame for these contents.
180 const string16& frame_name; 181 const string16& frame_name;
181 182
182 // The ID of the parent application (if any). 183 // The ID of the parent application (if any).
183 const string16& application_id; 184 const string16& application_id;
184 }; 185 };
185 186
186 #endif // CONTENT_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 187 #endif // CONTENT_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.h ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698