| // Copyright 2013 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_SEARCH_URLS_H_ |
| #define CHROME_COMMON_SEARCH_URLS_H_ |
| |
| class GURL; |
| |
| namespace search { |
| |
| // Returns true if |my_url| matches |other_url| in terms of origin (i.e. host, |
| // port, and scheme) and path. As a special case, this also matches if |my_url| |
| // is "https://" and |other_url| is "http://" (and host, port, and path match). |
| // This is so that "https://" URLs will be considered "Instant URLs" even if the |
| // default search provider URL is "http://". |
| bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); |
| |
| } // namespace search |
| |
| #endif // CHROME_COMMON_SEARCH_URLS_H_ |