| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ | 5 #ifndef IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ |
| 6 #define IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ | 6 #define IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 11 #include "ios/web/public/browser_url_rewriter.h" | 12 #include "ios/web/public/browser_url_rewriter.h" |
| 12 | 13 |
| 13 class GURL; | 14 class GURL; |
| 14 | 15 |
| 15 namespace web { | 16 namespace web { |
| 16 | 17 |
| 17 // Concrete subclass of web::BrowserURLRewriter. Stores added URLRewriters in a | 18 // Concrete subclass of web::BrowserURLRewriter. Stores added URLRewriters in a |
| 18 // vector and performs URL rewrites if necessary. | 19 // vector and performs URL rewrites if necessary. |
| 19 class BrowserURLRewriterImpl : public BrowserURLRewriter { | 20 class BrowserURLRewriterImpl : public BrowserURLRewriter { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 | 34 |
| 34 // The list of known URLRewriters. | 35 // The list of known URLRewriters. |
| 35 std::vector<URLRewriter> url_rewriters_; | 36 std::vector<URLRewriter> url_rewriters_; |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(BrowserURLRewriterImpl); | 38 DISALLOW_COPY_AND_ASSIGN(BrowserURLRewriterImpl); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace web | 41 } // namespace web |
| 41 | 42 |
| 42 #endif // IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ | 43 #endif // IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ |
| OLD | NEW |