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