Index: extensions/common/event_filtering_info.h |
diff --git a/extensions/common/event_filtering_info.h b/extensions/common/event_filtering_info.h |
index 86309ab2b9316cb6b7eece193277d73e1afcaf99..d125158af5a31b889fa33d25e7e449dac3f66b8d 100644 |
--- a/extensions/common/event_filtering_info.h |
+++ b/extensions/common/event_filtering_info.h |
@@ -28,6 +28,9 @@ class EventFilteringInfo { |
~EventFilteringInfo(); |
void SetURL(const GURL& url); |
void SetInstanceID(int instance_id); |
+ void SetServiceType(const std::string& service_type) { |
+ service_type_ = service_type; |
+ } |
bool has_url() const { return has_url_; } |
const GURL& url() const { return url_; } |
@@ -35,12 +38,15 @@ class EventFilteringInfo { |
bool has_instance_id() const { return has_instance_id_; } |
int instance_id() const { return instance_id_; } |
+ const std::string &service_type() const { return service_type_; } |
Matt Perry
2013/09/05 20:14:18
nit: space after &, not before.
Matt Perry
2013/09/05 20:14:18
I'd also add a has_service_type() that just checks
justinlin
2013/09/05 21:44:04
Done.
justinlin
2013/09/05 21:44:04
Done.
|
+ |
scoped_ptr<base::Value> AsValue() const; |
bool IsEmpty() const; |
private: |
bool has_url_; |
GURL url_; |
+ std::string service_type_; |
bool has_instance_id_; |
int instance_id_; |