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> |
11 | 11 |
12 #include "content/public/common/frame_navigate_params.h" | |
13 | |
12 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
13 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
16 #include "content/browser/browser_plugin/old/old_browser_plugin_host.h" | 18 #include "content/browser/browser_plugin/old/old_browser_plugin_host.h" |
17 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" | 19 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" |
18 #include "content/browser/renderer_host/render_view_host_delegate.h" | 20 #include "content/browser/renderer_host/render_view_host_delegate.h" |
19 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 21 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
20 #include "content/browser/web_contents/navigation_controller_impl.h" | 22 #include "content/browser/web_contents/navigation_controller_impl.h" |
21 #include "content/browser/web_contents/render_view_host_manager.h" | 23 #include "content/browser/web_contents/render_view_host_manager.h" |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
468 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 470 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
469 virtual void CreateViewAndSetSizeForRVH( | 471 virtual void CreateViewAndSetSizeForRVH( |
470 content::RenderViewHost* rvh) OVERRIDE; | 472 content::RenderViewHost* rvh) OVERRIDE; |
471 | 473 |
472 // content::NotificationObserver --------------------------------------------- | 474 // content::NotificationObserver --------------------------------------------- |
473 | 475 |
474 virtual void Observe(int type, | 476 virtual void Observe(int type, |
475 const content::NotificationSource& source, | 477 const content::NotificationSource& source, |
476 const content::NotificationDetails& details) OVERRIDE; | 478 const content::NotificationDetails& details) OVERRIDE; |
477 | 479 |
480 // For Cross-Navigation Post Submisstion | |
481 virtual void RequestOpenPostURL(content::RenderViewHost* rvh, | |
482 const GURL& url, | |
483 const content::Referrer& referrer, | |
484 WindowOpenDisposition disposition, | |
485 int64 source_frame_id, | |
486 bool is_post, | |
487 std::vector<content::WebHTTPPOSTBodyParams> post_d ata) OVERRIDE; | |
michaeln
2012/10/23 23:22:18
ditto pass by value
irobert
2012/11/01 19:26:31
Done.
| |
488 virtual void RequestTransferPostURL( | |
489 const GURL& url, | |
490 const content::Referrer& referrer, | |
491 WindowOpenDisposition disposition, | |
492 int64 source_frame_id, | |
493 const content::GlobalRequestID& transferred_global_request_id, | |
494 bool is_post, | |
495 std::vector<content::WebHTTPPOSTBodyParams> post_data) OVERRIDE; | |
478 | 496 |
479 private: | 497 private: |
480 friend class NavigationControllerImpl; | 498 friend class NavigationControllerImpl; |
481 friend class content::WebContentsObserver; | 499 friend class content::WebContentsObserver; |
482 friend class content::WebContents; // To implement factory methods. | 500 friend class content::WebContents; // To implement factory methods. |
483 | 501 |
484 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); | 502 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); |
485 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); | 503 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); |
486 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, | 504 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, |
487 CrossSiteCantPreemptAfterUnload); | 505 CrossSiteCantPreemptAfterUnload); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
874 content::RenderViewHost* message_source_; | 892 content::RenderViewHost* message_source_; |
875 | 893 |
876 // All live RenderWidgetHostImpls that are created by this object and may | 894 // All live RenderWidgetHostImpls that are created by this object and may |
877 // outlive it. | 895 // outlive it. |
878 std::set<content::RenderWidgetHostImpl*> created_widgets_; | 896 std::set<content::RenderWidgetHostImpl*> created_widgets_; |
879 | 897 |
880 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 898 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
881 }; | 899 }; |
882 | 900 |
883 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 901 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |