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

Unified Diff: chrome/common/extensions/event_filtering_info.h

Issue 10514013: Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix cross_incognito_args bug Created 8 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: chrome/common/extensions/event_filtering_info.h
diff --git a/chrome/common/extensions/event_filtering_info.h b/chrome/common/extensions/event_filtering_info.h
index e7077f1ba89bb213946d9a06349befbd6819a970..c4fc4fa8a6a3dcaec5edb855e9a7b3d7cfb0e939 100644
--- a/chrome/common/extensions/event_filtering_info.h
+++ b/chrome/common/extensions/event_filtering_info.h
@@ -6,7 +6,13 @@
#define CHROME_COMMON_EXTENSIONS_EVENT_FILTERING_INFO_H_
#pragma once
+#include "base/memory/scoped_ptr.h"
#include "googleurl/src/gurl.h"
+#include "v8/include/v8.h"
+
+namespace base {
+class Value;
+}
namespace extensions {
@@ -27,11 +33,14 @@ class EventFilteringInfo {
bool has_url() const { return has_url_; }
const GURL& url() const { return url_; }
+ std::string AsJSONString() const;
+ scoped_ptr<base::Value> AsValue() const;
+
private:
bool has_url_;
GURL url_;
- DISALLOW_COPY_AND_ASSIGN(EventFilteringInfo);
+ // Allow implicit copy and assignment.
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698