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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 int render_frame_id, | 745 int render_frame_id, |
746 IPC::Message* reply_msg, | 746 IPC::Message* reply_msg, |
747 bool dialog_was_suppressed, | 747 bool dialog_was_suppressed, |
748 bool success, | 748 bool success, |
749 const base::string16& user_input); | 749 const base::string16& user_input); |
750 | 750 |
751 bool OnMessageReceived(RenderViewHost* render_view_host, | 751 bool OnMessageReceived(RenderViewHost* render_view_host, |
752 RenderFrameHost* render_frame_host, | 752 RenderFrameHost* render_frame_host, |
753 const IPC::Message& message); | 753 const IPC::Message& message); |
754 | 754 |
| 755 // Checks whether render_frame_message_source_ is set to non-null value, |
| 756 // otherwise it terminates the main frame renderer process. |
| 757 bool HasValidFrameSource(); |
| 758 |
755 // IPC message handlers. | 759 // IPC message handlers. |
756 void OnThemeColorChanged(SkColor theme_color); | 760 void OnThemeColorChanged(SkColor theme_color); |
757 void OnDidLoadResourceFromMemoryCache(const GURL& url, | 761 void OnDidLoadResourceFromMemoryCache(const GURL& url, |
758 const std::string& security_info, | 762 const std::string& security_info, |
759 const std::string& http_request, | 763 const std::string& http_request, |
760 const std::string& mime_type, | 764 const std::string& mime_type, |
761 ResourceType resource_type); | 765 ResourceType resource_type); |
762 void OnDidDisplayInsecureContent(); | 766 void OnDidDisplayInsecureContent(); |
763 void OnDidRunInsecureContent(const std::string& security_origin, | 767 void OnDidRunInsecureContent(const std::string& security_origin, |
764 const GURL& target_url); | 768 const GURL& target_url); |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 // Adds/removes a callback called on creation of each new WebContents. | 1273 // Adds/removes a callback called on creation of each new WebContents. |
1270 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1274 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1271 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1275 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1272 | 1276 |
1273 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1277 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1274 }; | 1278 }; |
1275 | 1279 |
1276 } // namespace content | 1280 } // namespace content |
1277 | 1281 |
1278 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1282 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |