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

Unified Diff: chrome/browser/guest_view/guest_view_base.h

Issue 409603003: Refactor GuestView construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/guest_view/guest_view.h ('k') | chrome/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/guest_view_base.h
diff --git a/chrome/browser/guest_view/guest_view_base.h b/chrome/browser/guest_view/guest_view_base.h
index ff7ac3096612140b50fd4a37352df6964e863f2f..d8ee1a0a6facf40d6c494b60611b37e09b74af23 100644
--- a/chrome/browser/guest_view/guest_view_base.h
+++ b/chrome/browser/guest_view/guest_view_base.h
@@ -52,6 +52,13 @@ class GuestViewBase : public content::BrowserPluginGuestDelegate,
return NULL;
}
+ static void RegisterGuestViewTypes();
+
+ typedef base::Callback<GuestViewBase*(
+ content::BrowserContext*, int)> GuestCreationCallback;
+ static void RegisterGuestViewType(const std::string& view_type,
+ const GuestCreationCallback& callback);
+
static GuestViewBase* Create(content::BrowserContext* browser_context,
int guest_instance_id,
const std::string& view_type);
« no previous file with comments | « chrome/browser/guest_view/guest_view.h ('k') | chrome/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698