| 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> |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 const gfx::RectF& active_rect); | 766 const gfx::RectF& active_rect); |
| 767 | 767 |
| 768 void OnOpenDateTimeDialog( | 768 void OnOpenDateTimeDialog( |
| 769 const ViewHostMsg_DateTimeDialogValue_Params& value); | 769 const ViewHostMsg_DateTimeDialogValue_Params& value); |
| 770 #endif | 770 #endif |
| 771 void OnPepperPluginHung(int plugin_child_id, | 771 void OnPepperPluginHung(int plugin_child_id, |
| 772 const base::FilePath& path, | 772 const base::FilePath& path, |
| 773 bool is_hung); | 773 bool is_hung); |
| 774 void OnPluginCrashed(const base::FilePath& plugin_path, | 774 void OnPluginCrashed(const base::FilePath& plugin_path, |
| 775 base::ProcessId plugin_pid); | 775 base::ProcessId plugin_pid); |
| 776 void OnPluginContentOriginAllowed(const GURL& content_origin); |
| 777 void OnPluginContentMarkedPeripheral(const GURL& content_origin); |
| 776 void OnDomOperationResponse(const std::string& json_string, | 778 void OnDomOperationResponse(const std::string& json_string, |
| 777 int automation_id); | 779 int automation_id); |
| 778 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 780 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 779 void OnOpenColorChooser(int color_chooser_id, | 781 void OnOpenColorChooser(int color_chooser_id, |
| 780 SkColor color, | 782 SkColor color, |
| 781 const std::vector<ColorSuggestion>& suggestions); | 783 const std::vector<ColorSuggestion>& suggestions); |
| 782 void OnEndColorChooser(int color_chooser_id); | 784 void OnEndColorChooser(int color_chooser_id); |
| 783 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 785 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 784 void OnWebUISend(const GURL& source_url, | 786 void OnWebUISend(const GURL& source_url, |
| 785 const std::string& name, | 787 const std::string& name, |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 #endif | 985 #endif |
| 984 | 986 |
| 985 // Helper classes ------------------------------------------------------------ | 987 // Helper classes ------------------------------------------------------------ |
| 986 | 988 |
| 987 // Tracking variables and associated power save blockers for media playback. | 989 // Tracking variables and associated power save blockers for media playback. |
| 988 ActiveMediaPlayerMap active_audio_players_; | 990 ActiveMediaPlayerMap active_audio_players_; |
| 989 ActiveMediaPlayerMap active_video_players_; | 991 ActiveMediaPlayerMap active_video_players_; |
| 990 scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_; | 992 scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_; |
| 991 scoped_ptr<PowerSaveBlocker> video_power_save_blocker_; | 993 scoped_ptr<PowerSaveBlocker> video_power_save_blocker_; |
| 992 | 994 |
| 995 // Plugin content origins that have been whitelisted or marked peripheral. |
| 996 typedef std::map<RenderFrameHost*, std::set<GURL> > PluginContentOriginMap; |
| 997 PluginContentOriginMap plugin_content_origin_whitelist_; |
| 998 PluginContentOriginMap plugin_content_marked_peripheral_; |
| 999 |
| 993 // Manages the frame tree of the page and process swaps in each node. | 1000 // Manages the frame tree of the page and process swaps in each node. |
| 994 FrameTree frame_tree_; | 1001 FrameTree frame_tree_; |
| 995 | 1002 |
| 996 // SavePackage, lazily created. | 1003 // SavePackage, lazily created. |
| 997 scoped_refptr<SavePackage> save_package_; | 1004 scoped_refptr<SavePackage> save_package_; |
| 998 | 1005 |
| 999 // Data for loading state ---------------------------------------------------- | 1006 // Data for loading state ---------------------------------------------------- |
| 1000 | 1007 |
| 1001 // Indicates whether we're currently loading a resource. | 1008 // Indicates whether we're currently loading a resource. |
| 1002 bool is_loading_; | 1009 bool is_loading_; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1220 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
| 1214 | 1221 |
| 1215 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1222 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
| 1216 | 1223 |
| 1217 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1224 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1218 }; | 1225 }; |
| 1219 | 1226 |
| 1220 } // namespace content | 1227 } // namespace content |
| 1221 | 1228 |
| 1222 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1229 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |