OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Request the delegate to close this guest, and do whatever cleanup it needs | 33 // Request the delegate to close this guest, and do whatever cleanup it needs |
34 // to do. | 34 // to do. |
35 virtual void Close() {} | 35 virtual void Close() {} |
36 | 36 |
37 // Informs the delegate that the guest render process is gone. |status| | 37 // Informs the delegate that the guest render process is gone. |status| |
38 // indicates whether the guest was killed, crashed, or was terminated | 38 // indicates whether the guest was killed, crashed, or was terminated |
39 // gracefully. | 39 // gracefully. |
40 virtual void GuestProcessGone(base::TerminationStatus status) {} | 40 virtual void GuestProcessGone(base::TerminationStatus status) {} |
41 | 41 |
| 42 // Informs the delegate that the embedder has been destroyed. |
| 43 virtual void EmbedderDestroyed() {} |
| 44 |
42 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 45 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
43 | 46 |
44 // Notification that a load in the guest resulted in abort. Note that |url| | 47 // Notification that a load in the guest resulted in abort. Note that |url| |
45 // may be invalid. | 48 // may be invalid. |
46 virtual void LoadAbort(bool is_top_level, | 49 virtual void LoadAbort(bool is_top_level, |
47 const GURL& url, | 50 const GURL& url, |
48 const std::string& error_type) {} | 51 const std::string& error_type) {} |
49 | 52 |
50 // Notification that the guest is no longer hung. | 53 // Notification that the guest is no longer hung. |
51 virtual void RendererResponsive() {} | 54 virtual void RendererResponsive() {} |
(...skipping 15 matching lines...) Expand all Loading... |
67 const PermissionResponseCallback& callback); | 70 const PermissionResponseCallback& callback); |
68 | 71 |
69 // Notifies that the content size of the guest has changed in autosize mode. | 72 // Notifies that the content size of the guest has changed in autosize mode. |
70 virtual void SizeChanged(const gfx::Size& old_size, | 73 virtual void SizeChanged(const gfx::Size& old_size, |
71 const gfx::Size& new_size) {} | 74 const gfx::Size& new_size) {} |
72 }; | 75 }; |
73 | 76 |
74 } // namespace content | 77 } // namespace content |
75 | 78 |
76 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 79 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |