| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_COMMON_EXTENSION_URLS_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_URLS_H_ |
| 6 #define EXTENSIONS_COMMON_EXTENSION_URLS_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_URLS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 | 11 #include "url/gurl.h" |
| 12 class GURL; | |
| 13 | 12 |
| 14 namespace extensions { | 13 namespace extensions { |
| 15 | 14 |
| 16 // The name of the event_bindings module. | 15 // The name of the event_bindings module. |
| 17 extern const char kEventBindings[]; | 16 extern const char kEventBindings[]; |
| 18 | 17 |
| 19 // The name of the schemaUtils module. | 18 // The name of the schemaUtils module. |
| 20 extern const char kSchemaUtils[]; | 19 extern const char kSchemaUtils[]; |
| 21 | 20 |
| 22 // Determine whether or not a source came from an extension. |source| can link | 21 // Determine whether or not a source came from an extension. |source| can link |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Returns whether the URL is the webstore update URL (just considering host | 77 // Returns whether the URL is the webstore update URL (just considering host |
| 79 // and path, not scheme, query, etc.) | 78 // and path, not scheme, query, etc.) |
| 80 bool IsWebstoreUpdateUrl(const GURL& update_url); | 79 bool IsWebstoreUpdateUrl(const GURL& update_url); |
| 81 | 80 |
| 82 // Returns true if the URL points to an extension blacklist. | 81 // Returns true if the URL points to an extension blacklist. |
| 83 bool IsBlacklistUpdateUrl(const GURL& url); | 82 bool IsBlacklistUpdateUrl(const GURL& url); |
| 84 | 83 |
| 85 } // namespace extension_urls | 84 } // namespace extension_urls |
| 86 | 85 |
| 87 #endif // EXTENSIONS_COMMON_EXTENSION_URLS_H_ | 86 #endif // EXTENSIONS_COMMON_EXTENSION_URLS_H_ |
| OLD | NEW |