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 #include "content/browser/browser_url_handler_impl.h" | 5 #include "content/browser/browser_url_handler_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
8 #include "content/browser/frame_host/debug_urls.h" | 11 #include "content/browser/frame_host/debug_urls.h" |
9 #include "content/browser/webui/web_ui_impl.h" | 12 #include "content/browser/webui/web_ui_impl.h" |
10 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
11 #include "content/public/common/url_constants.h" | 14 #include "content/public/common/url_constants.h" |
12 #include "url/gurl.h" | 15 #include "url/gurl.h" |
13 | 16 |
14 namespace content { | 17 namespace content { |
15 | 18 |
16 // Handles rewriting view-source URLs for what we'll actually load. | 19 // Handles rewriting view-source URLs for what we'll actually load. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 return true; | 146 return true; |
144 } else if (handler(&test_url, browser_context)) { | 147 } else if (handler(&test_url, browser_context)) { |
145 return reverse_rewriter(url, browser_context); | 148 return reverse_rewriter(url, browser_context); |
146 } | 149 } |
147 } | 150 } |
148 } | 151 } |
149 return false; | 152 return false; |
150 } | 153 } |
151 | 154 |
152 } // namespace content | 155 } // namespace content |
OLD | NEW |