| Index: chrome/common/extensions/url_pattern.h
|
| diff --git a/chrome/common/extensions/url_pattern.h b/chrome/common/extensions/url_pattern.h
|
| index 6a83c017ce7c3b5a3dd2cd0348a16fd009352b14..3cde957c2c11d9ed57e1ca641bed4b57ecefd589 100644
|
| --- a/chrome/common/extensions/url_pattern.h
|
| +++ b/chrome/common/extensions/url_pattern.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// 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_URL_PATTERN_H_
|
| @@ -119,6 +119,15 @@ class URLPattern {
|
| bool match_all_urls() const { return match_all_urls_; }
|
| void SetMatchAllURLs(bool val);
|
|
|
| + // Returns true if this pattern matches inner URLs of filesystem: URLs only.
|
| + // Returns false if this pattern matches only non-filesystem URLs.
|
| + bool partial_filesystem_support_hack() const {
|
| + return partial_filesystem_support_hack_;
|
| + }
|
| + void set_partial_filesystem_support_hack(bool val) {
|
| + partial_filesystem_support_hack_ = val;
|
| + }
|
| +
|
| // Sets the scheme for pattern matches. This can be a single '*' if the
|
| // pattern matches all valid schemes (as defined by the valid_schemes_
|
| // property). Returns false on failure (if the scheme is not valid).
|
| @@ -204,6 +213,11 @@ class URLPattern {
|
| // True if this is a special-case "<all_urls>" pattern.
|
| bool match_all_urls_;
|
|
|
| + // True if we're trying to match against the inner URL of a filesystem URL;
|
| + // this is a temporary hack so as not to break ChromeOS as we work on full
|
| + // support.
|
| + bool partial_filesystem_support_hack_;
|
| +
|
| // The scheme for the pattern.
|
| std::string scheme_;
|
|
|
|
|