Chromium Code Reviews| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 // Notification that the guest is hung. | 80 // Notification that the guest is hung. |
| 81 virtual void RendererUnresponsive() {} | 81 virtual void RendererUnresponsive() {} |
| 82 | 82 |
| 83 typedef base::Callback<void(bool /* allow */, | 83 typedef base::Callback<void(bool /* allow */, |
| 84 const std::string& /* user_input */)> | 84 const std::string& /* user_input */)> |
| 85 PermissionResponseCallback; | 85 PermissionResponseCallback; |
| 86 | 86 |
| 87 // Request permission from the delegate to perform an action of the provided | 87 // Request permission from the delegate to perform an action of the provided |
| 88 // |permission_type|. Details of the permission request are found in | 88 // |permission_type|. Details of the permission request are found in |
| 89 // |request_info|. A |callback| is provided to make the decision. | 89 // |request_info|. A |callback| is provided to make the decision. |
| 90 // Returns whether the delegate has, or will handle the permission request. | 90 // Returns an unique identifier for the request. |
|
jam
2014/04/14 18:11:55
this return value isn't used in content (which i a
Fady Samuel
2014/04/14 18:51:14
Done.
| |
| 91 virtual bool RequestPermission( | 91 virtual int RequestPermission( |
| 92 BrowserPluginPermissionType permission_type, | 92 BrowserPluginPermissionType permission_type, |
| 93 const base::DictionaryValue& request_info, | 93 const base::DictionaryValue& request_info, |
| 94 const PermissionResponseCallback& callback, | 94 const PermissionResponseCallback& callback, |
| 95 bool allowed_by_default); | 95 bool allowed_by_default); |
| 96 | 96 |
| 97 // Requests resolution of a potentially relative URL. | 97 // Requests resolution of a potentially relative URL. |
| 98 virtual GURL ResolveURL(const std::string& src); | 98 virtual GURL ResolveURL(const std::string& src); |
| 99 | 99 |
| 100 // Notifies that the content size of the guest has changed in autosize mode. | 100 // Notifies that the content size of the guest has changed in autosize mode. |
| 101 virtual void SizeChanged(const gfx::Size& old_size, | 101 virtual void SizeChanged(const gfx::Size& old_size, |
| 102 const gfx::Size& new_size) {} | 102 const gfx::Size& new_size) {} |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace content | 105 } // namespace content |
| 106 | 106 |
| 107 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 107 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| OLD | NEW |