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 #include "ios/web/browser_url_rewriter_impl.h" | 5 #include "ios/web/browser_url_rewriter_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "ios/web/public/browser_state.h" | 9 #include "ios/web/public/browser_state.h" |
10 #include "ios/web/public/web_client.h" | 10 #import "ios/web/public/web_client.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 #if !defined(__has_feature) || !__has_feature(objc_arc) | 13 #if !defined(__has_feature) || !__has_feature(objc_arc) |
14 #error "This file requires ARC support." | 14 #error "This file requires ARC support." |
15 #endif | 15 #endif |
16 | 16 |
17 namespace web { | 17 namespace web { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 76 } |
77 | 77 |
78 bool BrowserURLRewriterImpl::RewriteURLIfNecessary( | 78 bool BrowserURLRewriterImpl::RewriteURLIfNecessary( |
79 GURL* url, | 79 GURL* url, |
80 BrowserState* browser_state) { | 80 BrowserState* browser_state) { |
81 return BrowserURLRewriter::RewriteURLWithWriters(url, browser_state, | 81 return BrowserURLRewriter::RewriteURLWithWriters(url, browser_state, |
82 url_rewriters_); | 82 url_rewriters_); |
83 } | 83 } |
84 | 84 |
85 } // namespace web | 85 } // namespace web |
OLD | NEW |