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 "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager
.h" | 16 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager
.h" |
17 #include "content/browser/renderer_host/render_view_host_delegate.h" | 17 #include "content/browser/renderer_host/render_view_host_delegate.h" |
18 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 18 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
19 #include "content/browser/web_contents/navigation_controller_impl.h" | 19 #include "content/browser/web_contents/navigation_controller_impl.h" |
20 #include "content/browser/web_contents/render_view_host_manager.h" | 20 #include "content/browser/web_contents/render_view_host_manager.h" |
21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
| 25 #include "content/public/common/frame_navigate_params.h" |
25 #include "content/public/common/renderer_preferences.h" | 26 #include "content/public/common/renderer_preferences.h" |
26 #include "net/base/load_states.h" | 27 #include "net/base/load_states.h" |
27 #include "ui/gfx/rect_f.h" | 28 #include "ui/gfx/rect_f.h" |
28 #include "ui/gfx/size.h" | 29 #include "ui/gfx/size.h" |
29 #include "webkit/glue/resource_type.h" | 30 #include "webkit/glue/resource_type.h" |
30 | 31 |
31 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
32 #include "base/win/scoped_handle.h" | 33 #include "base/win/scoped_handle.h" |
33 #endif | 34 #endif |
34 | 35 |
35 struct BrowserPluginHostMsg_ResizeGuest_Params; | 36 struct BrowserPluginHostMsg_ResizeGuest_Params; |
36 struct ViewMsg_PostMessage_Params; | 37 struct ViewMsg_PostMessage_Params; |
| 38 struct ViewMsg_Request; |
37 | 39 |
38 namespace webkit_glue { | 40 namespace webkit_glue { |
39 struct WebIntentData; | 41 struct WebIntentData; |
40 struct WebIntentServiceData; | 42 struct WebIntentServiceData; |
41 } | 43 } |
42 | 44 |
43 namespace content { | 45 namespace content { |
44 class BrowserPluginEmbedder; | 46 class BrowserPluginEmbedder; |
45 class BrowserPluginGuest; | 47 class BrowserPluginGuest; |
46 class ColorChooser; | 48 class ColorChooser; |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 virtual bool FocusLocationBarByDefault() OVERRIDE; | 455 virtual bool FocusLocationBarByDefault() OVERRIDE; |
454 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 456 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
455 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; | 457 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; |
456 | 458 |
457 // NotificationObserver ------------------------------------------------------ | 459 // NotificationObserver ------------------------------------------------------ |
458 | 460 |
459 virtual void Observe(int type, | 461 virtual void Observe(int type, |
460 const NotificationSource& source, | 462 const NotificationSource& source, |
461 const NotificationDetails& details) OVERRIDE; | 463 const NotificationDetails& details) OVERRIDE; |
462 | 464 |
| 465 // For Cross-Navigation Post Submisstion |
| 466 virtual void RequestOpenPostURL(content::RenderViewHost* rvh, |
| 467 const GURL& url, |
| 468 const content::Referrer& referrer, |
| 469 WindowOpenDisposition disposition, |
| 470 int64 source_frame_id, |
| 471 const ViewMsg_Request& request) OVERRIDE; |
| 472 |
| 473 virtual void RequestTransferPostURL( |
| 474 const GURL& url, |
| 475 const content::Referrer& referrer, |
| 476 WindowOpenDisposition disposition, |
| 477 int64 source_frame_id, |
| 478 const content::GlobalRequestID& transferred_global_request_id, |
| 479 const ViewMsg_Request& request) OVERRIDE; |
463 | 480 |
464 private: | 481 private: |
465 friend class NavigationControllerImpl; | 482 friend class NavigationControllerImpl; |
466 friend class WebContentsObserver; | 483 friend class WebContentsObserver; |
467 friend class WebContents; // To implement factory methods. | 484 friend class WebContents; // To implement factory methods. |
468 | 485 |
469 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); | 486 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); |
470 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); | 487 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); |
471 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, | 488 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, |
472 CrossSiteCantPreemptAfterUnload); | 489 CrossSiteCantPreemptAfterUnload); |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 // All live RenderWidgetHostImpls that are created by this object and may | 871 // All live RenderWidgetHostImpls that are created by this object and may |
855 // outlive it. | 872 // outlive it. |
856 std::set<RenderWidgetHostImpl*> created_widgets_; | 873 std::set<RenderWidgetHostImpl*> created_widgets_; |
857 | 874 |
858 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 875 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
859 }; | 876 }; |
860 | 877 |
861 } // namespace content | 878 } // namespace content |
862 | 879 |
863 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 880 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |