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 | 766 |
767 void OnOpenDateTimeDialog( | 767 void OnOpenDateTimeDialog( |
768 const ViewHostMsg_DateTimeDialogValue_Params& value); | 768 const ViewHostMsg_DateTimeDialogValue_Params& value); |
769 #endif | 769 #endif |
770 #if defined(ENABLE_PLUGINS) | 770 #if defined(ENABLE_PLUGINS) |
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); | |
776 #endif | 777 #endif |
777 void OnDomOperationResponse(const std::string& json_string, | 778 void OnDomOperationResponse(const std::string& json_string, |
778 int automation_id); | 779 int automation_id); |
779 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 780 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
780 void OnOpenColorChooser(int color_chooser_id, | 781 void OnOpenColorChooser(int color_chooser_id, |
781 SkColor color, | 782 SkColor color, |
782 const std::vector<ColorSuggestion>& suggestions); | 783 const std::vector<ColorSuggestion>& suggestions); |
783 void OnEndColorChooser(int color_chooser_id); | 784 void OnEndColorChooser(int color_chooser_id); |
784 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 785 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
785 void OnWebUISend(const GURL& source_url, | 786 void OnWebUISend(const GURL& source_url, |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
991 #endif | 992 #endif |
992 | 993 |
993 // Helper classes ------------------------------------------------------------ | 994 // Helper classes ------------------------------------------------------------ |
994 | 995 |
995 // Tracking variables and associated power save blockers for media playback. | 996 // Tracking variables and associated power save blockers for media playback. |
996 ActiveMediaPlayerMap active_audio_players_; | 997 ActiveMediaPlayerMap active_audio_players_; |
997 ActiveMediaPlayerMap active_video_players_; | 998 ActiveMediaPlayerMap active_video_players_; |
998 scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_; | 999 scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_; |
999 scoped_ptr<PowerSaveBlocker> video_power_save_blocker_; | 1000 scoped_ptr<PowerSaveBlocker> video_power_save_blocker_; |
1000 | 1001 |
1002 #if defined(ENABLE_PLUGINS) | |
1003 // Plugin content origins that have been whitelisted. | |
Charlie Reis
2014/10/30 22:13:16
It's not clear from the comment what these have be
tommycli
2014/10/31 00:01:21
Done.
| |
1004 typedef std::set<GURL> PluginContentOriginSet; | |
1005 PluginContentOriginSet plugin_content_origin_whitelist_; | |
Charlie Reis
2014/10/30 22:13:16
I'm wondering if this belongs on a WebContentsObse
tommycli
2014/10/31 00:01:22
Done.
| |
1006 #endif | |
1007 | |
1001 // Manages the frame tree of the page and process swaps in each node. | 1008 // Manages the frame tree of the page and process swaps in each node. |
1002 FrameTree frame_tree_; | 1009 FrameTree frame_tree_; |
1003 | 1010 |
1004 // SavePackage, lazily created. | 1011 // SavePackage, lazily created. |
1005 scoped_refptr<SavePackage> save_package_; | 1012 scoped_refptr<SavePackage> save_package_; |
1006 | 1013 |
1007 // Data for loading state ---------------------------------------------------- | 1014 // Data for loading state ---------------------------------------------------- |
1008 | 1015 |
1009 // Indicates whether we're currently loading a resource. | 1016 // Indicates whether we're currently loading a resource. |
1010 bool is_loading_; | 1017 bool is_loading_; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1223 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1230 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
1224 | 1231 |
1225 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1232 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1226 | 1233 |
1227 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1234 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1228 }; | 1235 }; |
1229 | 1236 |
1230 } // namespace content | 1237 } // namespace content |
1231 | 1238 |
1232 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1239 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |