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

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 TransitionRequestManager that the main frame navigation is
317 // a transition navigation.
318 virtual void SetHasPendingTransitionRequest(
319 bool has_pending_transition) OVERRIDE;
320
321 // Notifies the main frame that it can continue navigation (if it was deferred
322 // immediately at first response).
323 virtual void ResumeResponseDeferredAtStart() OVERRIDE;
324
316 // Implementation of PageNavigator. 325 // Implementation of PageNavigator.
317 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 326 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
318 327
319 // Implementation of IPC::Sender. 328 // Implementation of IPC::Sender.
320 virtual bool Send(IPC::Message* message) OVERRIDE; 329 virtual bool Send(IPC::Message* message) OVERRIDE;
321 330
322 // RenderFrameHostDelegate --------------------------------------------------- 331 // RenderFrameHostDelegate ---------------------------------------------------
323 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 332 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
324 const IPC::Message& message) OVERRIDE; 333 const IPC::Message& message) OVERRIDE;
325 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE; 334 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE;
326 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; 335 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE;
327 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; 336 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE;
328 virtual void DidStartLoading(RenderFrameHost* render_frame_host, 337 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
329 bool to_different_document) OVERRIDE; 338 bool to_different_document) OVERRIDE;
330 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; 339 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE;
340 virtual void DidDeferAfterResponseStarted() OVERRIDE;
331 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; 341 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE;
332 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 342 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
333 const ContextMenuParams& params) OVERRIDE; 343 const ContextMenuParams& params) OVERRIDE;
334 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, 344 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host,
335 const base::string16& message, 345 const base::string16& message,
336 const base::string16& default_prompt, 346 const base::string16& default_prompt,
337 const GURL& frame_url, 347 const GURL& frame_url,
338 JavaScriptMessageType type, 348 JavaScriptMessageType type,
339 IPC::Message* reply_msg) OVERRIDE; 349 IPC::Message* reply_msg) OVERRIDE;
340 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, 350 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host,
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 bool last_dialog_suppressed_; 1139 bool last_dialog_suppressed_;
1130 1140
1131 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; 1141 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
1132 1142
1133 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1143 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1134 }; 1144 };
1135 1145
1136 } // namespace content 1146 } // namespace content
1137 1147
1138 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1148 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698