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

Unified Diff: chrome/browser/extensions/api/declarative_content/content_action.h

Issue 900203003: Clean up of plumbing HostID in declarative content API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/api/declarative_content/content_action.h
diff --git a/chrome/browser/extensions/api/declarative_content/content_action.h b/chrome/browser/extensions/api/declarative_content/content_action.h
index d7a9a0b2c4e64ccf9734bb750e532754c56de96d..34119a1055ecceece44aeb89e8938ba834833277 100644
--- a/chrome/browser/extensions/api/declarative_content/content_action.h
+++ b/chrome/browser/extensions/api/declarative_content/content_action.h
@@ -67,7 +67,6 @@ class ContentAction : public base::RefCounted<ContentAction> {
// in case the input is syntactically unexpected.
static scoped_refptr<ContentAction> Create(
content::BrowserContext* browser_context,
- const HostID& host_id,
const Extension* extension,
const base::Value& json_action,
std::string* error,
@@ -96,21 +95,15 @@ class RequestContentScript : public ContentAction {
public:
struct ScriptData;
- // TODO(hanxi): remove the plumbing of |host_id| when introducing class
- // Host/Consumer to de-couple extension from the ContentAction.
- // |host_id| will be a part of Host/Consumer class.
RequestContentScript(content::BrowserContext* browser_context,
- const HostID& host_id,
const Extension* extension,
const ScriptData& script_data);
RequestContentScript(DeclarativeUserScriptMaster* master,
- const HostID& host_id,
const Extension* extension,
const ScriptData& script_data);
static scoped_refptr<ContentAction> Create(
content::BrowserContext* browser_context,
- const HostID& host_id,
const Extension* extension,
const base::DictionaryValue* dict,
std::string* error,
@@ -118,7 +111,6 @@ class RequestContentScript : public ContentAction {
static scoped_refptr<ContentAction> CreateForTest(
DeclarativeUserScriptMaster* master,
- const HostID& host_id,
const Extension* extension,
const base::Value& json_action,
std::string* error,

Powered by Google App Engine
This is Rietveld 408576698