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.h" |
16 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager
.h" | 17 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager
.h" |
17 #include "content/browser/renderer_host/render_view_host_delegate.h" | 18 #include "content/browser/renderer_host/render_view_host_delegate.h" |
18 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 19 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
19 #include "content/browser/web_contents/navigation_controller_impl.h" | 20 #include "content/browser/web_contents/navigation_controller_impl.h" |
20 #include "content/browser/web_contents/render_view_host_manager.h" | 21 #include "content/browser/web_contents/render_view_host_manager.h" |
21 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
22 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
23 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
24 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
25 #include "content/public/common/renderer_preferences.h" | 26 #include "content/public/common/renderer_preferences.h" |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 void OnFindReply(int request_id, | 545 void OnFindReply(int request_id, |
545 int number_of_matches, | 546 int number_of_matches, |
546 const gfx::Rect& selection_rect, | 547 const gfx::Rect& selection_rect, |
547 int active_match_ordinal, | 548 int active_match_ordinal, |
548 bool final_update); | 549 bool final_update); |
549 #if defined(OS_ANDROID) | 550 #if defined(OS_ANDROID) |
550 void OnFindMatchRectsReply(int version, | 551 void OnFindMatchRectsReply(int version, |
551 const std::vector<gfx::RectF>& rects, | 552 const std::vector<gfx::RectF>& rects, |
552 const gfx::RectF& active_rect); | 553 const gfx::RectF& active_rect); |
553 #endif | 554 #endif |
554 void OnCrashedPlugin(const FilePath& plugin_path); | 555 void OnCrashedPlugin(const FilePath& plugin_path, base::ProcessId plugin_pid); |
555 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 556 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
556 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 557 void OnOpenColorChooser(int color_chooser_id, SkColor color); |
557 void OnEndColorChooser(int color_chooser_id); | 558 void OnEndColorChooser(int color_chooser_id); |
558 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 559 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
559 void OnPepperPluginHung(int plugin_child_id, | 560 void OnPepperPluginHung(int plugin_child_id, |
560 const FilePath& path, | 561 const FilePath& path, |
561 bool is_hung); | 562 bool is_hung); |
562 void OnWebUISend(const GURL& source_url, | 563 void OnWebUISend(const GURL& source_url, |
563 const std::string& name, | 564 const std::string& name, |
564 const base::ListValue& args); | 565 const base::ListValue& args); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 // Maps the ids of pending favicon downloads to their callbacks | 866 // Maps the ids of pending favicon downloads to their callbacks |
866 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 867 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
867 FaviconDownloadMap favicon_download_map_; | 868 FaviconDownloadMap favicon_download_map_; |
868 | 869 |
869 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 870 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
870 }; | 871 }; |
871 | 872 |
872 } // namespace content | 873 } // namespace content |
873 | 874 |
874 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 875 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |