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

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: Rebase. 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 // RenderFrameHostDelegate --------------------------------------------------- 321 // RenderFrameHostDelegate ---------------------------------------------------
322 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 322 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
323 const IPC::Message& message) OVERRIDE; 323 const IPC::Message& message) OVERRIDE;
324 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE; 324 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE;
325 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; 325 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE;
326 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; 326 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE;
327 virtual void DidStartLoading(RenderFrameHost* render_frame_host, 327 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
328 bool to_different_document) OVERRIDE; 328 bool to_different_document) OVERRIDE;
329 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; 329 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE;
330 virtual void DidDeferAfterResponseStarted() OVERRIDE;
331 virtual bool WillHandleDeferAfterResponseStarted() OVERRIDE;
330 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; 332 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE;
331 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 333 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
332 const ContextMenuParams& params) OVERRIDE; 334 const ContextMenuParams& params) OVERRIDE;
333 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, 335 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host,
334 const base::string16& message, 336 const base::string16& message,
335 const base::string16& default_prompt, 337 const base::string16& default_prompt,
336 const GURL& frame_url, 338 const GURL& frame_url,
337 JavaScriptMessageType type, 339 JavaScriptMessageType type,
338 IPC::Message* reply_msg) OVERRIDE; 340 IPC::Message* reply_msg) OVERRIDE;
339 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, 341 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host,
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 bool is_loading, 621 bool is_loading,
620 bool to_different_document, 622 bool to_different_document,
621 LoadNotificationDetails* details) OVERRIDE; 623 LoadNotificationDetails* details) OVERRIDE;
622 624
623 typedef base::Callback<void(WebContents*)> CreatedCallback; 625 typedef base::Callback<void(WebContents*)> CreatedCallback;
624 626
625 // Requests the renderer to select the region between two points in the 627 // Requests the renderer to select the region between two points in the
626 // currently focused frame. 628 // currently focused frame.
627 void SelectRange(const gfx::Point& start, const gfx::Point& end); 629 void SelectRange(const gfx::Point& start, const gfx::Point& end);
628 630
631 // Notifies the main frame that it can continue navigation (if it was deferred
632 // immediately at first response).
633 void ResumeResponseDeferredAtStart();
634
629 private: 635 private:
630 friend class TestNavigationObserver; 636 friend class TestNavigationObserver;
631 friend class WebContentsAddedObserver; 637 friend class WebContentsAddedObserver;
632 friend class WebContentsObserver; 638 friend class WebContentsObserver;
633 friend class WebContents; // To implement factory methods. 639 friend class WebContents; // To implement factory methods.
634 640
635 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); 641 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials);
636 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); 642 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle);
637 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending); 643 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending);
638 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, 644 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest,
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 1144
1139 scoped_ptr<ScreenOrientationDispatcherHost> 1145 scoped_ptr<ScreenOrientationDispatcherHost>
1140 screen_orientation_dispatcher_host_; 1146 screen_orientation_dispatcher_host_;
1141 1147
1142 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1148 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1143 }; 1149 };
1144 1150
1145 } // namespace content 1151 } // namespace content
1146 1152
1147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1153 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/transition_request_manager.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698