OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_ | |
7 | |
8 #include "base/callback.h" | |
9 #include "build/build_config.h" | |
10 #include "content/common/content_export.h" | |
11 | |
12 class GURL; | |
13 | |
14 namespace content { | |
15 | |
16 class SiteInstance; | |
17 class WebContents; | |
18 | |
19 class CONTENT_EXPORT BrowserPluginGuestManagerDelegate { | |
20 public: | |
21 virtual ~BrowserPluginGuestManagerDelegate() {} | |
22 | |
23 virtual int GetNextInstanceID(); | |
lazyboy
2014/04/30 08:40:15
Add description for these interface methods.
Fady Samuel
2014/05/01 02:04:42
Done.
| |
24 | |
25 virtual void AddGuest(int guest_instance_id, | |
26 WebContents* guest_web_contents) {} | |
27 | |
28 virtual void RemoveGuest(int guest_instance_id) {} | |
29 | |
30 virtual WebContents* GetGuestByInstanceID(int guest_instance_id, | |
31 int embedder_render_process_id); | |
32 | |
33 virtual bool CanEmbedderAccessInstanceID(int embedder_render_process_id, | |
34 int guest_instance_id); | |
35 | |
36 virtual bool CanEmbedderAccessInstanceIDMaybeKill( | |
37 int embedder_render_process_id, | |
38 int guest_instance_id); | |
39 | |
40 virtual content::SiteInstance* GetGuestSiteInstance(const GURL& guest_site); | |
41 | |
42 typedef base::Callback<bool(WebContents*)> GuestCallback; | |
43 virtual bool ForEachGuest(WebContents* embedder_web_contents, | |
44 const GuestCallback& callback); | |
45 | |
46 typedef base::Callback<void(int)> InstanceIDResponseCallback; | |
47 virtual void RequestInstanceID(const std::string& src, | |
48 const InstanceIDResponseCallback& callback) {} | |
49 | |
50 }; | |
51 | |
52 } // namespace content | |
53 | |
54 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_ | |
OLD | NEW |