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

Side by Side Diff: chrome/browser/extensions/extension_host.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: 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int32 page_id); 127 int32 page_id);
128 128
129 // RenderViewHostDelegate implementation. 129 // RenderViewHostDelegate implementation.
130 virtual RenderViewHostDelegate::View* GetViewDelegate(); 130 virtual RenderViewHostDelegate::View* GetViewDelegate();
131 virtual WebPreferences GetWebkitPrefs(); 131 virtual WebPreferences GetWebkitPrefs();
132 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params); 132 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params);
133 virtual void RunJavaScriptMessage(const std::wstring& message, 133 virtual void RunJavaScriptMessage(const std::wstring& message,
134 const std::wstring& default_prompt, 134 const std::wstring& default_prompt,
135 const GURL& frame_url, 135 const GURL& frame_url,
136 const int flags, 136 const int flags,
137 const bool unload_handler_being_run,
137 IPC::Message* reply_msg, 138 IPC::Message* reply_msg,
138 bool* did_suppress_message); 139 bool* did_suppress_message);
139 virtual void Close(RenderViewHost* render_view_host); 140 virtual void Close(RenderViewHost* render_view_host);
140 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 141 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
141 142
142 // RenderViewHostDelegate::View 143 // RenderViewHostDelegate::View
143 virtual void CreateNewWindow( 144 virtual void CreateNewWindow(
144 int route_id, 145 int route_id,
145 const ViewHostMsg_CreateWindow_Params& params); 146 const ViewHostMsg_CreateWindow_Params& params);
146 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 147 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // FileSelectHelper, lazily created. 288 // FileSelectHelper, lazily created.
288 scoped_ptr<FileSelectHelper> file_select_helper_; 289 scoped_ptr<FileSelectHelper> file_select_helper_;
289 290
290 // Handles desktop notification IPCs. 291 // Handles desktop notification IPCs.
291 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_; 292 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_;
292 293
293 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 294 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
294 }; 295 };
295 296
296 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 297 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | chrome/renderer/render_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698