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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 6 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() 306 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents()
307 OVERRIDE; 307 OVERRIDE;
308 #elif defined(OS_MACOSX) 308 #elif defined(OS_MACOSX)
309 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; 309 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE;
310 virtual bool GetAllowOverlappingViews() OVERRIDE; 310 virtual bool GetAllowOverlappingViews() OVERRIDE;
311 virtual void SetOverlayView(WebContents* overlay, 311 virtual void SetOverlayView(WebContents* overlay,
312 const gfx::Point& offset) OVERRIDE; 312 const gfx::Point& offset) OVERRIDE;
313 virtual void RemoveOverlayView() OVERRIDE; 313 virtual void RemoveOverlayView() OVERRIDE;
314 #endif 314 #endif
315 315
316 // Notifies the main frame that it can continue navigation (if it was deferred
317 // immediately at first response).
318 virtual void ResumeResponseDeferredAtStart() OVERRIDE;
319
316 // Implementation of PageNavigator. 320 // Implementation of PageNavigator.
317 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 321 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
318 322
319 // Implementation of IPC::Sender. 323 // Implementation of IPC::Sender.
320 virtual bool Send(IPC::Message* message) OVERRIDE; 324 virtual bool Send(IPC::Message* message) OVERRIDE;
321 325
322 // RenderFrameHostDelegate --------------------------------------------------- 326 // RenderFrameHostDelegate ---------------------------------------------------
323 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 327 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
324 const IPC::Message& message) OVERRIDE; 328 const IPC::Message& message) OVERRIDE;
325 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE; 329 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE;
326 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; 330 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE;
327 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; 331 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE;
328 virtual void DidStartLoading(RenderFrameHost* render_frame_host, 332 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
329 bool to_different_document) OVERRIDE; 333 bool to_different_document) OVERRIDE;
330 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; 334 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE;
335 virtual void DidDeferAfterResponseStarted() OVERRIDE;
331 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; 336 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE;
332 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 337 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
333 const ContextMenuParams& params) OVERRIDE; 338 const ContextMenuParams& params) OVERRIDE;
334 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, 339 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host,
335 const base::string16& message, 340 const base::string16& message,
336 const base::string16& default_prompt, 341 const base::string16& default_prompt,
337 const GURL& frame_url, 342 const GURL& frame_url,
338 JavaScriptMessageType type, 343 JavaScriptMessageType type,
339 IPC::Message* reply_msg) OVERRIDE; 344 IPC::Message* reply_msg) OVERRIDE;
340 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, 345 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host,
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 bool last_dialog_suppressed_; 1134 bool last_dialog_suppressed_;
1130 1135
1131 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; 1136 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
1132 1137
1133 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1138 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1134 }; 1139 };
1135 1140
1136 } // namespace content 1141 } // namespace content
1137 1142
1138 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1143 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698