| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 void OnWebContentsDestroyed(WebContentsImpl* web_contents); | 658 void OnWebContentsDestroyed(WebContentsImpl* web_contents); |
| 659 | 659 |
| 660 // Creates and adds to the map a destruction observer watching |web_contents|. | 660 // Creates and adds to the map a destruction observer watching |web_contents|. |
| 661 // No-op if such an observer already exists. | 661 // No-op if such an observer already exists. |
| 662 void AddDestructionObserver(WebContentsImpl* web_contents); | 662 void AddDestructionObserver(WebContentsImpl* web_contents); |
| 663 | 663 |
| 664 // Deletes and removes from the map a destruction observer | 664 // Deletes and removes from the map a destruction observer |
| 665 // watching |web_contents|. No-op if there is no such observer. | 665 // watching |web_contents|. No-op if there is no such observer. |
| 666 void RemoveDestructionObserver(WebContentsImpl* web_contents); | 666 void RemoveDestructionObserver(WebContentsImpl* web_contents); |
| 667 | 667 |
| 668 // Callback function when showing JavaScript dialogs. Takes in a routing ID | 668 // Callback function when showing JavaScript dialogs. |
| 669 // pair to identify the RenderFrameHost that opened the dialog, because it's | 669 void OnDialogClosed(RenderFrameHost* rfh, |
| 670 // possible for the RenderFrameHost to be deleted by the time this is called. | |
| 671 void OnDialogClosed(int render_process_id, | |
| 672 int render_frame_id, | |
| 673 IPC::Message* reply_msg, | 670 IPC::Message* reply_msg, |
| 674 bool dialog_was_suppressed, | 671 bool dialog_was_suppressed, |
| 675 bool success, | 672 bool success, |
| 676 const base::string16& user_input); | 673 const base::string16& user_input); |
| 677 | 674 |
| 678 // Callback function when requesting permission to access the PPAPI broker. | 675 // Callback function when requesting permission to access the PPAPI broker. |
| 679 // |result| is true if permission was granted. | 676 // |result| is true if permission was granted. |
| 680 void OnPpapiBrokerPermissionResult(int routing_id, bool result); | 677 void OnPpapiBrokerPermissionResult(int routing_id, bool result); |
| 681 | 678 |
| 682 bool OnMessageReceived(RenderViewHost* render_view_host, | 679 bool OnMessageReceived(RenderViewHost* render_view_host, |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 | 1092 |
| 1096 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1093 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1097 bool last_dialog_suppressed_; | 1094 bool last_dialog_suppressed_; |
| 1098 | 1095 |
| 1099 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1096 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1100 }; | 1097 }; |
| 1101 | 1098 |
| 1102 } // namespace content | 1099 } // namespace content |
| 1103 | 1100 |
| 1104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1101 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |