OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_ABOUT_HANDLER_H__ | 5 #ifndef CHROME_COMMON_ABOUT_HANDLER_H__ |
6 #define CHROME_COMMON_ABOUT_HANDLER_H__ | 6 #define CHROME_COMMON_ABOUT_HANDLER_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 class GURL; | 11 class GURL; |
12 | 12 |
13 namespace chrome_about_handler { | 13 namespace chrome_about_handler { |
14 | 14 |
15 extern const char* const about_urls[]; | 15 extern const char* const about_urls[]; |
16 extern const size_t about_urls_size; // Only used for testing | 16 extern const size_t about_urls_size; // Only used for testing |
| 17 extern const char* const kAboutScheme; |
17 | 18 |
18 // Returns true if the URL is one that AboutHandler will handle when | 19 // Returns true if the URL is one that AboutHandler will handle when |
19 // AboutHandler::MaybeHandle is called. | 20 // AboutHandler::MaybeHandle is called. |
20 bool WillHandle(const GURL& url); | 21 bool WillHandle(const GURL& url); |
21 | 22 |
22 } // namespace chrome_about_handler | 23 } // namespace chrome_about_handler |
23 | 24 |
24 #endif // CHROME_COMMON_ABOUT_HANDLER_H__ | 25 #endif // CHROME_COMMON_ABOUT_HANDLER_H__ |
OLD | NEW |