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 "base/process/process.h" | 16 #include "base/process/process.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "content/browser/frame_host/frame_tree.h" | 18 #include "content/browser/frame_host/frame_tree.h" |
19 #include "content/browser/frame_host/navigation_controller_delegate.h" | 19 #include "content/browser/frame_host/navigation_controller_delegate.h" |
20 #include "content/browser/frame_host/navigation_controller_impl.h" | 20 #include "content/browser/frame_host/navigation_controller_impl.h" |
21 #include "content/browser/frame_host/navigator_delegate.h" | 21 #include "content/browser/frame_host/navigator_delegate.h" |
22 #include "content/browser/frame_host/render_frame_host_delegate.h" | 22 #include "content/browser/frame_host/render_frame_host_delegate.h" |
23 #include "content/browser/frame_host/render_frame_host_manager.h" | 23 #include "content/browser/frame_host/render_frame_host_manager.h" |
24 #include "content/browser/renderer_host/render_view_host_delegate.h" | 24 #include "content/browser/renderer_host/render_view_host_delegate.h" |
25 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 25 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
26 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
27 #include "content/public/browser/ax_event_notification_details.h" | |
28 #include "content/public/browser/color_chooser.h" | 27 #include "content/public/browser/color_chooser.h" |
29 #include "content/public/browser/notification_observer.h" | 28 #include "content/public/browser/notification_observer.h" |
30 #include "content/public/browser/notification_registrar.h" | 29 #include "content/public/browser/notification_registrar.h" |
31 #include "content/public/browser/web_contents.h" | 30 #include "content/public/browser/web_contents.h" |
32 #include "content/public/common/page_transition_types.h" | 31 #include "content/public/common/page_transition_types.h" |
33 #include "content/public/common/renderer_preferences.h" | 32 #include "content/public/common/renderer_preferences.h" |
34 #include "content/public/common/three_d_api_types.h" | 33 #include "content/public/common/three_d_api_types.h" |
35 #include "net/base/load_states.h" | 34 #include "net/base/load_states.h" |
36 #include "third_party/WebKit/public/web/WebDragOperation.h" | 35 #include "third_party/WebKit/public/web/WebDragOperation.h" |
37 #include "ui/gfx/rect_f.h" | 36 #include "ui/gfx/rect_f.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 LoadNotificationDetails* details) OVERRIDE; | 622 LoadNotificationDetails* details) OVERRIDE; |
624 | 623 |
625 typedef base::Callback<void(WebContents*)> CreatedCallback; | 624 typedef base::Callback<void(WebContents*)> CreatedCallback; |
626 | 625 |
627 // Requests the renderer to select the region between two points in the | 626 // Requests the renderer to select the region between two points in the |
628 // currently focused frame. | 627 // currently focused frame. |
629 void SelectRange(const gfx::Point& start, const gfx::Point& end); | 628 void SelectRange(const gfx::Point& start, const gfx::Point& end); |
630 | 629 |
631 private: | 630 private: |
632 friend class TestNavigationObserver; | 631 friend class TestNavigationObserver; |
| 632 friend class WebContentsAddedObserver; |
633 friend class WebContentsObserver; | 633 friend class WebContentsObserver; |
634 friend class WebContents; // To implement factory methods. | 634 friend class WebContents; // To implement factory methods. |
635 | 635 |
636 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); | 636 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); |
637 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); | 637 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); |
638 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending); | 638 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending); |
639 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, | 639 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, |
640 CrossSiteCantPreemptAfterUnload); | 640 CrossSiteCantPreemptAfterUnload); |
641 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, PendingContents); | 641 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, PendingContents); |
642 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FrameTreeShape); | 642 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FrameTreeShape); |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 bool last_dialog_suppressed_; | 1098 bool last_dialog_suppressed_; |
1099 | 1099 |
1100 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; | 1100 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; |
1101 | 1101 |
1102 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1102 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1103 }; | 1103 }; |
1104 | 1104 |
1105 } // namespace content | 1105 } // namespace content |
1106 | 1106 |
1107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |