summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/url_pattern.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/url_pattern.h')
-rw-r--r--chrome/common/extensions/url_pattern.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/extensions/url_pattern.h b/chrome/common/extensions/url_pattern.h
index c0f17af..56deed5 100644
--- a/chrome/common/extensions/url_pattern.h
+++ b/chrome/common/extensions/url_pattern.h
@@ -114,6 +114,14 @@ class URLPattern {
// Parse() instead, which returns success or failure.
URLPattern(int valid_schemes, const std::string& pattern);
+#if defined(_MSC_VER) && _MSC_VER >= 1600
+ // Note: don't use this directly. This exists so URLPattern can be used
+ // with STL containers. Starting with Visual Studio 2010, we can't have this
+ // method private and use "friend class std::vector<URLPattern>;" as we used
+ // to do.
+ URLPattern();
+#endif
+
~URLPattern();
// Gets the bitmask of valid schemes.
@@ -201,11 +209,13 @@ class URLPattern {
};
private:
+#if !(defined(_MSC_VER) && _MSC_VER >= 1600)
friend class std::vector<URLPattern>;
// Note: don't use this directly. This exists so URLPattern can be used
// with STL containers.
URLPattern();
+#endif
// A bitmask containing the schemes which are considered valid for this
// pattern. Parse() uses this to decide whether a pattern contains a valid