| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // Notifies the delegate about the creation of a new WebContents. This | 193 // Notifies the delegate about the creation of a new WebContents. This |
| 194 // typically happens when popups are created. | 194 // typically happens when popups are created. |
| 195 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a | 195 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a |
| 196 // WebContentsDelegate. | 196 // WebContentsDelegate. |
| 197 virtual void WebContentsCreated(WebContents* source_contents, | 197 virtual void WebContentsCreated(WebContents* source_contents, |
| 198 int opener_render_frame_id, | 198 int opener_render_frame_id, |
| 199 const base::string16& frame_name, | 199 const base::string16& frame_name, |
| 200 const GURL& target_url, | 200 const GURL& target_url, |
| 201 WebContents* new_contents) {} | 201 WebContents* new_contents) {} |
| 202 | 202 |
| 203 // Notification that a frame's name has changed. Note that this is only |
| 204 // reported if the report_frame_name_changes flag is on in |
| 205 // RendererPreferences. |
| 206 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a |
| 207 // WebContentsDelegate. |
| 208 virtual void FrameNameChanged(int render_frame_id, |
| 209 bool is_top_level, |
| 210 const std::string& name) {} |
| 211 |
| 212 |
| 203 // Registers a |callback| with the delegate that the delegate would call when | 213 // Registers a |callback| with the delegate that the delegate would call when |
| 204 // it is about to be destroyed. | 214 // it is about to be destroyed. |
| 205 typedef base::Callback<void(WebContents*)> DestructionCallback; | 215 typedef base::Callback<void(WebContents*)> DestructionCallback; |
| 206 virtual void RegisterDestructionCallback( | 216 virtual void RegisterDestructionCallback( |
| 207 const DestructionCallback& callback) {} | 217 const DestructionCallback& callback) {} |
| 208 }; | 218 }; |
| 209 | 219 |
| 210 } // namespace content | 220 } // namespace content |
| 211 | 221 |
| 212 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 222 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| OLD | NEW |