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

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: Correct diff 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
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..5cf84dad9975d69b31519547157c41d827d40111 100644
--- a/extensions/common/event_filtering_info.h
+++ b/extensions/common/event_filtering_info.h
@@ -27,10 +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_; }
+ bool has_instance_id() const { return has_instance_id_; }
+ int instance_id() const { return instance_id_; }
+
std::string AsJSONString() const;
Matt Perry 2013/06/18 23:29:02 This is unused. Can you remove it while you're in
Fady Samuel 2013/06/19 01:15:16 Done.
scoped_ptr<base::Value> AsValue() const;
bool IsEmpty() const;
@@ -39,6 +43,9 @@ class EventFilteringInfo {
bool has_url_;
GURL url_;
+ bool has_instance_id_;
+ int instance_id_;
+
// Allow implicit copy and assignment.
};

Powered by Google App Engine
This is Rietveld 408576698