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

Unified Diff: extensions/common/event_filtering_info.h

Issue 23437015: Initial chrome.mdns API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable test for WinDbg Created 7 years, 3 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 86309ab2b9316cb6b7eece193277d73e1afcaf99..a3587986a9ece864024876dab462af867538615a 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,16 @@ class EventFilteringInfo {
bool has_instance_id() const { return has_instance_id_; }
int instance_id() const { return instance_id_; }
+ bool has_service_type() const { return !service_type_.empty(); }
+ const std::string& service_type() const { return service_type_; }
+
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_;

Powered by Google App Engine
This is Rietveld 408576698