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

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

Issue 3207002: FBTF: Forward declare and move constructors in chrome/common/extensions/. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win fixes Created 10 years, 4 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/extension_extent.h
diff --git a/chrome/common/extensions/extension_extent.h b/chrome/common/extensions/extension_extent.h
index bb66e1bec8fd35baacdae71468605e4499caa7a8..cb4641fa89dde38bca79f0847c258c3d07b69904 100644
--- a/chrome/common/extensions/extension_extent.h
+++ b/chrome/common/extensions/extension_extent.h
@@ -8,19 +8,24 @@
#include <vector>
-#include "chrome/common/extensions/url_pattern.h"
-#include "googleurl/src/gurl.h"
+class GURL;
+class URLPattern;
// Represents the set of URLs an extension uses for web content.
class ExtensionExtent {
public:
typedef std::vector<URLPattern> PatternList;
- bool is_empty() const { return patterns_.empty(); }
+ ExtensionExtent();
+ ExtensionExtent(const ExtensionExtent& rhs);
+ ~ExtensionExtent();
+ ExtensionExtent& operator=(const ExtensionExtent& rhs);
+
+ bool is_empty() const;
const PatternList& patterns() const { return patterns_; }
- void AddPattern(const URLPattern& pattern) { patterns_.push_back(pattern); }
- void ClearPaths() { patterns_.clear(); }
+ void AddPattern(const URLPattern& pattern);
+ void ClearPaths();
// Test if the extent contains a URL.
bool ContainsURL(const GURL& url) const;

Powered by Google App Engine
This is Rietveld 408576698