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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 virtual void DidStartLoading(RenderViewHost* render_view_host) OVERRIDE; | 329 virtual void DidStartLoading(RenderViewHost* render_view_host) OVERRIDE; |
330 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; | 330 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; |
331 virtual void DidCancelLoading() OVERRIDE; | 331 virtual void DidCancelLoading() OVERRIDE; |
332 virtual void DidChangeLoadProgress(double progress) OVERRIDE; | 332 virtual void DidChangeLoadProgress(double progress) OVERRIDE; |
333 virtual void DidUpdateFrameTree(RenderViewHost* rvh) OVERRIDE; | 333 virtual void DidUpdateFrameTree(RenderViewHost* rvh) OVERRIDE; |
334 virtual void DocumentAvailableInMainFrame( | 334 virtual void DocumentAvailableInMainFrame( |
335 RenderViewHost* render_view_host) OVERRIDE; | 335 RenderViewHost* render_view_host) OVERRIDE; |
336 virtual void DocumentOnLoadCompletedInMainFrame( | 336 virtual void DocumentOnLoadCompletedInMainFrame( |
337 RenderViewHost* render_view_host, | 337 RenderViewHost* render_view_host, |
338 int32 page_id) OVERRIDE; | 338 int32 page_id) OVERRIDE; |
339 virtual void RequestOpenURL(RenderViewHost* rvh, | 339 virtual void RequestOpenURL( |
340 const GURL& url, | 340 RenderViewHost* rvh, |
341 const Referrer& referrer, | 341 const GURL& url, |
342 WindowOpenDisposition disposition, | 342 const Referrer& referrer, |
343 int64 source_frame_id) OVERRIDE; | 343 WindowOpenDisposition disposition, |
| 344 int64 source_frame_id, |
| 345 std::string extra_header, |
| 346 scoped_refptr<webkit_glue::ResourceRequestBody> request_body) OVERRIDE; |
344 virtual void RequestTransferURL( | 347 virtual void RequestTransferURL( |
345 const GURL& url, | 348 const GURL& url, |
346 const Referrer& referrer, | 349 const Referrer& referrer, |
347 WindowOpenDisposition disposition, | 350 WindowOpenDisposition disposition, |
348 int64 source_frame_id, | 351 int64 source_frame_id, |
349 const GlobalRequestID& transferred_global_request_id) OVERRIDE; | 352 const GlobalRequestID& transferred_global_request_id, |
| 353 std::string extra_header, |
| 354 scoped_refptr<webkit_glue::ResourceRequestBody> request_body) OVERRIDE; |
350 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; | 355 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; |
351 virtual void RouteMessageEvent( | 356 virtual void RouteMessageEvent( |
352 RenderViewHost* rvh, | 357 RenderViewHost* rvh, |
353 const ViewMsg_PostMessage_Params& params) OVERRIDE; | 358 const ViewMsg_PostMessage_Params& params) OVERRIDE; |
354 virtual void RunJavaScriptMessage(RenderViewHost* rvh, | 359 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
355 const string16& message, | 360 const string16& message, |
356 const string16& default_prompt, | 361 const string16& default_prompt, |
357 const GURL& frame_url, | 362 const GURL& frame_url, |
358 JavaScriptMessageType type, | 363 JavaScriptMessageType type, |
359 IPC::Message* reply_msg, | 364 IPC::Message* reply_msg, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 virtual bool FocusLocationBarByDefault() OVERRIDE; | 459 virtual bool FocusLocationBarByDefault() OVERRIDE; |
455 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 460 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
456 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; | 461 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; |
457 | 462 |
458 // NotificationObserver ------------------------------------------------------ | 463 // NotificationObserver ------------------------------------------------------ |
459 | 464 |
460 virtual void Observe(int type, | 465 virtual void Observe(int type, |
461 const NotificationSource& source, | 466 const NotificationSource& source, |
462 const NotificationDetails& details) OVERRIDE; | 467 const NotificationDetails& details) OVERRIDE; |
463 | 468 |
464 | |
465 private: | 469 private: |
466 friend class NavigationControllerImpl; | 470 friend class NavigationControllerImpl; |
467 friend class WebContentsObserver; | 471 friend class WebContentsObserver; |
468 friend class WebContents; // To implement factory methods. | 472 friend class WebContents; // To implement factory methods. |
469 | 473 |
470 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); | 474 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); |
471 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); | 475 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); |
472 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, | 476 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, |
473 CrossSiteCantPreemptAfterUnload); | 477 CrossSiteCantPreemptAfterUnload); |
474 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles); | 478 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 // All live RenderWidgetHostImpls that are created by this object and may | 857 // All live RenderWidgetHostImpls that are created by this object and may |
854 // outlive it. | 858 // outlive it. |
855 std::set<RenderWidgetHostImpl*> created_widgets_; | 859 std::set<RenderWidgetHostImpl*> created_widgets_; |
856 | 860 |
857 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 861 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
858 }; | 862 }; |
859 | 863 |
860 } // namespace content | 864 } // namespace content |
861 | 865 |
862 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 866 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |