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