| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ | 6 #define CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 BrowserURLHandlerImpl(); | 39 BrowserURLHandlerImpl(); |
| 40 virtual ~BrowserURLHandlerImpl(); | 40 virtual ~BrowserURLHandlerImpl(); |
| 41 friend struct DefaultSingletonTraits<BrowserURLHandlerImpl>; | 41 friend struct DefaultSingletonTraits<BrowserURLHandlerImpl>; |
| 42 | 42 |
| 43 // The list of known URLHandlers, optionally with reverse-rewriters. | 43 // The list of known URLHandlers, optionally with reverse-rewriters. |
| 44 typedef std::pair<URLHandler, URLHandler> HandlerPair; | 44 typedef std::pair<URLHandler, URLHandler> HandlerPair; |
| 45 std::vector<HandlerPair> url_handlers_; | 45 std::vector<HandlerPair> url_handlers_; |
| 46 | 46 |
| 47 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, BasicRewriteAndReverse); | 47 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, BasicRewriteAndReverse); |
| 48 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, NullHandlerReverse); | 48 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, NullHandlerReverse); |
| 49 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, ViewSourceReverse); |
| 49 | 50 |
| 50 DISALLOW_COPY_AND_ASSIGN(BrowserURLHandlerImpl); | 51 DISALLOW_COPY_AND_ASSIGN(BrowserURLHandlerImpl); |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace content | 54 } // namespace content |
| 54 | 55 |
| 55 #endif // CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ | 56 #endif // CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ |
| OLD | NEW |