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

Side by Side Diff: content/browser/tab_contents/tab_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_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 virtual void DomOperationResponse(const std::string& json_string, 944 virtual void DomOperationResponse(const std::string& json_string,
945 int automation_id); 945 int automation_id);
946 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params); 946 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params);
947 virtual void ProcessExternalHostMessage(const std::string& message, 947 virtual void ProcessExternalHostMessage(const std::string& message,
948 const std::string& origin, 948 const std::string& origin,
949 const std::string& target); 949 const std::string& target);
950 virtual void RunJavaScriptMessage(const std::wstring& message, 950 virtual void RunJavaScriptMessage(const std::wstring& message,
951 const std::wstring& default_prompt, 951 const std::wstring& default_prompt,
952 const GURL& frame_url, 952 const GURL& frame_url,
953 const int flags, 953 const int flags,
954 const bool unload_handler_being_run,
954 IPC::Message* reply_msg, 955 IPC::Message* reply_msg,
955 bool* did_suppress_message); 956 bool* did_suppress_message);
956 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 957 virtual void RunBeforeUnloadConfirm(const std::wstring& message,
957 IPC::Message* reply_msg); 958 IPC::Message* reply_msg);
958 virtual GURL GetAlternateErrorPageURL() const; 959 virtual GURL GetAlternateErrorPageURL() const;
959 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 960 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
960 virtual WebPreferences GetWebkitPrefs(); 961 virtual WebPreferences GetWebkitPrefs();
961 virtual void OnUserGesture(); 962 virtual void OnUserGesture();
962 virtual void OnIgnoredUIEvent(); 963 virtual void OnIgnoredUIEvent();
963 virtual void OnCrossSiteResponse(int new_render_process_host_id, 964 virtual void OnCrossSiteResponse(int new_render_process_host_id,
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 ObserverList<TabContentsObserver> observers_; 1247 ObserverList<TabContentsObserver> observers_;
1247 1248
1248 // Content restrictions, used to disable print/copy etc based on content's 1249 // Content restrictions, used to disable print/copy etc based on content's
1249 // (full-page plugins for now only) permissions. 1250 // (full-page plugins for now only) permissions.
1250 int content_restrictions_; 1251 int content_restrictions_;
1251 1252
1252 DISALLOW_COPY_AND_ASSIGN(TabContents); 1253 DISALLOW_COPY_AND_ASSIGN(TabContents);
1253 }; 1254 };
1254 1255
1255 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1256 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/background_contents.h ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698