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

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

Issue 12208078: Move chrome/common/extensions/event_* to extensions/common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: v8 Created 7 years, 10 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/common/extensions/event_filter_unittest.cc ('k') | chrome/common/extensions/event_filtering_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 852524100c875e3a2e0439e4f0072f5a7c246b38..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/event_filtering_info.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_EVENT_FILTERING_INFO_H_
-#define CHROME_COMMON_EXTENSIONS_EVENT_FILTERING_INFO_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "googleurl/src/gurl.h"
-#include "v8/include/v8.h"
-
-namespace base {
-class Value;
-}
-
-namespace extensions {
-
-// Extra information about an event that is used in event filtering.
-//
-// This is the information that is matched against criteria specified in JS
-// extension event listeners. Eg:
-//
-// chrome.someApi.onSomeEvent.addListener(cb,
-// {url: [{hostSuffix: 'google.com'}],
-// tabId: 1});
-class EventFilteringInfo {
- public:
- EventFilteringInfo();
- ~EventFilteringInfo();
- void SetURL(const GURL& url);
-
- bool has_url() const { return has_url_; }
- const GURL& url() const { return url_; }
-
- std::string AsJSONString() const;
- scoped_ptr<base::Value> AsValue() const;
- bool IsEmpty() const;
-
- private:
- bool has_url_;
- GURL url_;
-
- // Allow implicit copy and assignment.
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_EVENT_FILTERING_INFO_H_
« no previous file with comments | « chrome/common/extensions/event_filter_unittest.cc ('k') | chrome/common/extensions/event_filtering_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698