OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |