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

Unified Diff: extensions/common/event_filtering_info.h

Issue 17419004: <webview>: Add support for filtering extension events by instanceId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@filter_listener
Patch Set: Updated Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | extensions/common/event_filtering_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/event_filtering_info.h
diff --git a/extensions/common/event_filtering_info.h b/extensions/common/event_filtering_info.h
index 2fee9c15db48293caac8052881b446cf89e8c354..a4895864d78cabbc8c080599500d3f4dff16db3a 100644
--- a/extensions/common/event_filtering_info.h
+++ b/extensions/common/event_filtering_info.h
@@ -27,11 +27,14 @@ class EventFilteringInfo {
EventFilteringInfo();
~EventFilteringInfo();
void SetURL(const GURL& url);
+ void SetInstanceID(int instance_id);
bool has_url() const { return has_url_; }
const GURL& url() const { return url_; }
- std::string AsJSONString() const;
+ bool has_instance_id() const { return has_instance_id_; }
+ int instance_id() const { return instance_id_; }
+
scoped_ptr<base::Value> AsValue() const;
bool IsEmpty() const;
@@ -39,6 +42,9 @@ class EventFilteringInfo {
bool has_url_;
GURL url_;
+ bool has_instance_id_;
+ int instance_id_;
+
// Allow implicit copy and assignment.
};
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | extensions/common/event_filtering_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698