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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 // Objects implement this interface to get notified about changes in the guest | 23 // Objects implement this interface to get notified about changes in the guest |
24 // WebContents and to provide necessary functionality. | 24 // WebContents and to provide necessary functionality. |
25 class CONTENT_EXPORT BrowserPluginGuestDelegate { | 25 class CONTENT_EXPORT BrowserPluginGuestDelegate { |
26 public: | 26 public: |
27 virtual ~BrowserPluginGuestDelegate() {} | 27 virtual ~BrowserPluginGuestDelegate() {} |
28 | 28 |
29 // Notification that the embedder will begin attachment. This is called | 29 // Notification that the embedder will begin attachment. This is called |
30 // prior to resuming resource loads. | 30 // prior to resuming resource loads. |
31 virtual void WillAttach(content::WebContents* embedder_web_contents, | 31 virtual void WillAttach(content::WebContents* embedder_web_contents) {} |
32 const base::DictionaryValue& extra_params) {} | |
33 | 32 |
34 virtual WebContents* CreateNewGuestWindow( | 33 virtual WebContents* CreateNewGuestWindow( |
35 const WebContents::CreateParams& create_params); | 34 const WebContents::CreateParams& create_params); |
36 | 35 |
37 // Notification that the embedder has completed attachment. | 36 // Notification that the embedder has completed attachment. |
38 virtual void DidAttach() {} | 37 virtual void DidAttach() {} |
39 | 38 |
40 // Requests the instance ID associated with the delegate. | 39 // Requests the instance ID associated with the delegate. |
41 virtual int GetGuestInstanceID() const; | 40 virtual int GetGuestInstanceID() const; |
42 | 41 |
(...skipping 21 matching lines...) Expand all Loading... |
64 // Registers a |callback| with the delegate that the delegate would call when | 63 // Registers a |callback| with the delegate that the delegate would call when |
65 // it is about to be destroyed. | 64 // it is about to be destroyed. |
66 typedef base::Callback<void()> DestructionCallback; | 65 typedef base::Callback<void()> DestructionCallback; |
67 virtual void RegisterDestructionCallback( | 66 virtual void RegisterDestructionCallback( |
68 const DestructionCallback& callback) {} | 67 const DestructionCallback& callback) {} |
69 }; | 68 }; |
70 | 69 |
71 } // namespace content | 70 } // namespace content |
72 | 71 |
73 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 72 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |