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

Unified Diff: chrome/browser/extensions/extensions_service.h

Issue 92043: Refactor ExtensionView to support a UI-less extension instance.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
Index: chrome/browser/extensions/extensions_service.h
===================================================================
--- chrome/browser/extensions/extensions_service.h (revision 14851)
+++ chrome/browser/extensions/extensions_service.h (working copy)
@@ -7,6 +7,7 @@
#include <string>
#include <vector>
+#include <list>
#include "base/file_path.h"
#include "base/message_loop.h"
@@ -17,6 +18,7 @@
class Browser;
class BrowsingInstance;
class Extension;
+class ExtensionHost;
class ExtensionView;
class ExtensionsServiceBackend;
class GURL;
@@ -82,6 +84,10 @@
const GURL& url,
Browser* browser);
+ // Creates a new UI-less extension instance. Like CreateView, but not
+ // displayed anywhere.
+ void CreateBackgroundHost(Extension* extension, const GURL& url);
+
// Returns the SiteInstance that the given URL belongs to.
SiteInstance* GetSiteInstanceForURL(const GURL& url);
@@ -112,6 +118,10 @@
// controls process grouping.
scoped_refptr<BrowsingInstance> browsing_instance_;
+ // The list of running viewless background extensions.
+ typedef std::list<ExtensionHost*> ExtensionHostList;
+ ExtensionHostList background_hosts_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionsService);
};
« no previous file with comments | « chrome/browser/extensions/extension_view_unittest.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698