Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: content/public/browser/browser_plugin_guest_manager.h

Issue 299753011: Move allocate instance id to chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: HasPermission function moved Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 13 matching lines...) Expand all
24 // A BrowserPluginGuestManager offloads guest management and routing 24 // A BrowserPluginGuestManager offloads guest management and routing
25 // operations outside of the content layer. 25 // operations outside of the content layer.
26 class CONTENT_EXPORT BrowserPluginGuestManager { 26 class CONTENT_EXPORT BrowserPluginGuestManager {
27 public: 27 public:
28 virtual ~BrowserPluginGuestManager() {} 28 virtual ~BrowserPluginGuestManager() {}
29 29
30 // Requests the allocation of a new guest WebContents. 30 // Requests the allocation of a new guest WebContents.
31 virtual content::WebContents* CreateGuest( 31 virtual content::WebContents* CreateGuest(
32 content::SiteInstance* embedder_site_instance, 32 content::SiteInstance* embedder_site_instance,
33 int instance_id, 33 int instance_id,
34 const std::string& storage_partition_id,
35 bool persist_storage,
36 scoped_ptr<base::DictionaryValue> extra_params); 34 scoped_ptr<base::DictionaryValue> extra_params);
37 35
38 // Return a new instance ID. 36 // Return a new instance ID.
39 // TODO(fsamuel): Remove this. Once the instance ID concept is moved 37 // TODO(fsamuel): Remove this. Once the instance ID concept is moved
40 // entirely out of content and into chrome, this API will be unnecessary. 38 // entirely out of content and into chrome, this API will be unnecessary.
41 virtual int GetNextInstanceID(); 39 virtual int GetNextInstanceID();
42 40
43 typedef base::Callback<void(WebContents*)> GuestByInstanceIDCallback; 41 typedef base::Callback<void(WebContents*)> GuestByInstanceIDCallback;
44 // Requests a guest WebContents associated with the provided 42 // Requests a guest WebContents associated with the provided
45 // |guest_instance_id|. If a guest associated with the provided ID 43 // |guest_instance_id|. If a guest associated with the provided ID
(...skipping 10 matching lines...) Expand all
56 // calling |callback| for each. If one of the callbacks returns true, then 54 // calling |callback| for each. If one of the callbacks returns true, then
57 // the iteration exits early. 55 // the iteration exits early.
58 typedef base::Callback<bool(WebContents*)> GuestCallback; 56 typedef base::Callback<bool(WebContents*)> GuestCallback;
59 virtual bool ForEachGuest(WebContents* embedder_web_contents, 57 virtual bool ForEachGuest(WebContents* embedder_web_contents,
60 const GuestCallback& callback); 58 const GuestCallback& callback);
61 }; 59 };
62 60
63 } // namespace content 61 } // namespace content
64 62
65 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_ 63 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_plugin_guest_delegate.h ('k') | content/public/browser/browser_plugin_guest_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698