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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 2787393003: Fix races in tests waiting for beforeunload dialogs. (Closed)
Patch Set: rev Created 3 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // scoped to this RenderFrameHost. This provides access to interfaces 238 // scoped to this RenderFrameHost. This provides access to interfaces
239 // implemented in Java in the browser process to C++ code in the browser 239 // implemented in Java in the browser process to C++ code in the browser
240 // process. 240 // process.
241 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; 241 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0;
242 #endif // OS_ANDROID 242 #endif // OS_ANDROID
243 243
244 // Stops and disables the hang monitor for beforeunload. This avoids flakiness 244 // Stops and disables the hang monitor for beforeunload. This avoids flakiness
245 // in tests that need to observe beforeunload dialogs, which could fail if the 245 // in tests that need to observe beforeunload dialogs, which could fail if the
246 // timeout skips the dialog. 246 // timeout skips the dialog.
247 virtual void DisableBeforeUnloadHangMonitorForTesting() = 0; 247 virtual void DisableBeforeUnloadHangMonitorForTesting() = 0;
248 virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0;
248 249
249 private: 250 private:
250 // This interface should only be implemented inside content. 251 // This interface should only be implemented inside content.
251 friend class RenderFrameHostImpl; 252 friend class RenderFrameHostImpl;
252 RenderFrameHost() {} 253 RenderFrameHost() {}
253 }; 254 };
254 255
255 } // namespace content 256 } // namespace content
256 257
257 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 258 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698