| 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 <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "content/browser/browser_plugin/old/old_browser_plugin_host.h" | 15 #include "content/browser/browser_plugin/old/old_browser_plugin_host.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/renderer_preferences.h" | 25 #include "content/public/common/renderer_preferences.h" |
| 26 #include "net/base/load_states.h" | 26 #include "net/base/load_states.h" |
| 27 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
| 28 #include "webkit/glue/resource_type.h" | 28 #include "webkit/glue/resource_type.h" |
| 29 | 29 |
| 30 #if defined(OS_ANDROID) |
| 31 #include "ui/gfx/rect_f.h" |
| 32 #endif |
| 33 |
| 30 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
| 31 #include "base/win/scoped_handle.h" | 35 #include "base/win/scoped_handle.h" |
| 32 #endif | 36 #endif |
| 33 | 37 |
| 34 class InterstitialPageImpl; | 38 class InterstitialPageImpl; |
| 35 class SavePackage; | 39 class SavePackage; |
| 36 class SessionStorageNamespaceImpl; | 40 class SessionStorageNamespaceImpl; |
| 37 class WebContentsImpl; | 41 class WebContentsImpl; |
| 38 struct ViewMsg_PostMessage_Params; | 42 struct ViewMsg_PostMessage_Params; |
| 39 | 43 |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 int maximum_percent, | 522 int maximum_percent, |
| 519 bool remember); | 523 bool remember); |
| 520 void OnSaveURL(const GURL& url, const content::Referrer& referrer); | 524 void OnSaveURL(const GURL& url, const content::Referrer& referrer); |
| 521 void OnEnumerateDirectory(int request_id, const FilePath& path); | 525 void OnEnumerateDirectory(int request_id, const FilePath& path); |
| 522 void OnJSOutOfMemory(); | 526 void OnJSOutOfMemory(); |
| 523 | 527 |
| 524 void OnRegisterProtocolHandler(const std::string& protocol, | 528 void OnRegisterProtocolHandler(const std::string& protocol, |
| 525 const GURL& url, | 529 const GURL& url, |
| 526 const string16& title, | 530 const string16& title, |
| 527 bool user_gesture); | 531 bool user_gesture); |
| 528 void OnFindReply(int request_id, int number_of_matches, | 532 void OnFindReply(int request_id, |
| 529 const gfx::Rect& selection_rect, int active_match_ordinal, | 533 int number_of_matches, |
| 534 const gfx::Rect& selection_rect, |
| 535 int active_match_ordinal, |
| 530 bool final_update); | 536 bool final_update); |
| 537 #if defined(OS_ANDROID) |
| 538 void OnGetFindMatchRectsReply(int version, |
| 539 const std::vector<gfx::RectF>& rects, |
| 540 const gfx::RectF& active_rect); |
| 541 #endif |
| 531 void OnCrashedPlugin(const FilePath& plugin_path); | 542 void OnCrashedPlugin(const FilePath& plugin_path); |
| 532 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 543 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 533 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 544 void OnOpenColorChooser(int color_chooser_id, SkColor color); |
| 534 void OnEndColorChooser(int color_chooser_id); | 545 void OnEndColorChooser(int color_chooser_id); |
| 535 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 546 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 536 void OnPepperPluginHung(int plugin_child_id, | 547 void OnPepperPluginHung(int plugin_child_id, |
| 537 const FilePath& path, | 548 const FilePath& path, |
| 538 bool is_hung); | 549 bool is_hung); |
| 539 void OnWebUISend(const GURL& source_url, | 550 void OnWebUISend(const GURL& source_url, |
| 540 const std::string& name, | 551 const std::string& name, |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 content::NotificationRegistrar registrar_; | 829 content::NotificationRegistrar registrar_; |
| 819 | 830 |
| 820 // Used during IPC message dispatching so that the handlers can get a pointer | 831 // Used during IPC message dispatching so that the handlers can get a pointer |
| 821 // to the RVH through which the message was received. | 832 // to the RVH through which the message was received. |
| 822 content::RenderViewHost* message_source_; | 833 content::RenderViewHost* message_source_; |
| 823 | 834 |
| 824 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 835 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 825 }; | 836 }; |
| 826 | 837 |
| 827 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 838 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |