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