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

Unified Diff: chrome/browser/extensions/extension.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
« no previous file with comments | « chrome/browser/browser_list.cc ('k') | chrome/browser/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension.h
===================================================================
--- chrome/browser/extensions/extension.h (revision 14851)
+++ chrome/browser/extensions/extension.h (working copy)
@@ -38,6 +38,7 @@
static const wchar_t* kNameKey;
static const wchar_t* kPermissionsKey;
static const wchar_t* kPluginsDirKey;
+ static const wchar_t* kBackgroundKey;
static const wchar_t* kRunAtKey;
static const wchar_t* kThemeKey;
static const wchar_t* kToolstripsKey;
@@ -63,6 +64,7 @@
static const char* kInvalidMatchesError;
static const char* kInvalidNameError;
static const char* kInvalidPluginsDirError;
+ static const char* kInvalidBackgroundError;
static const char* kInvalidRunAtError;
static const char* kInvalidToolstripError;
static const char* kInvalidToolstripsError;
@@ -122,6 +124,7 @@
const std::string& description() const { return description_; }
const UserScriptList& content_scripts() const { return content_scripts_; }
const FilePath& plugins_dir() const { return plugins_dir_; }
+ const GURL& background_url() const { return background_url_; }
const std::vector<std::string>& toolstrips() const { return toolstrips_; }
const std::vector<URLPattern>& permissions() const {
return permissions_; }
@@ -163,6 +166,10 @@
// contains.
FilePath plugins_dir_;
+ // Optional URL to a master page of which a single instance should be always
+ // loaded in the background.
+ GURL background_url_;
+
// Paths to HTML files to be displayed in the toolbar.
std::vector<std::string> toolstrips_;
@@ -174,6 +181,7 @@
// A map of resource id's to relative file paths.
std::map<const std::wstring, std::string> theme_paths_;
+ // The sites this extension has permission to talk to (using XHR, etc).
std::vector<URLPattern> permissions_;
// We implement copy, but not assign.
« no previous file with comments | « chrome/browser/browser_list.cc ('k') | chrome/browser/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698