| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/apps/app_url_redirector.h" | 5 #include "chrome/browser/apps/app_url_redirector.h" |
| 6 | 6 |
| 7 #include "apps/launcher.h" | 7 #include "apps/launcher.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/profiles/profile_io_data.h" | 11 #include "chrome/browser/profiles/profile_io_data.h" |
| 12 #include "chrome/common/extensions/api/url_handlers/url_handlers_parser.h" | 12 #include "chrome/common/extensions/api/url_handlers/url_handlers_parser.h" |
| 13 #include "chrome/common/extensions/extension_messages.h" | |
| 14 #include "components/navigation_interception/intercept_navigation_resource_throt
tle.h" | 13 #include "components/navigation_interception/intercept_navigation_resource_throt
tle.h" |
| 15 #include "components/navigation_interception/navigation_params.h" | 14 #include "components/navigation_interception/navigation_params.h" |
| 16 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 17 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
| 18 #include "content/public/browser/resource_request_info.h" | 17 #include "content/public/browser/resource_request_info.h" |
| 19 #include "content/public/browser/resource_throttle.h" | 18 #include "content/public/browser/resource_throttle.h" |
| 20 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
| 21 #include "extensions/browser/info_map.h" | 20 #include "extensions/browser/info_map.h" |
| 22 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
| 22 #include "extensions/common/extension_messages.h" |
| 23 #include "extensions/common/extension_set.h" | 23 #include "extensions/common/extension_set.h" |
| 24 #include "net/url_request/url_request.h" | 24 #include "net/url_request/url_request.h" |
| 25 | 25 |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 using content::ResourceRequestInfo; | 27 using content::ResourceRequestInfo; |
| 28 using content::WebContents; | 28 using content::WebContents; |
| 29 using extensions::Extension; | 29 using extensions::Extension; |
| 30 using extensions::UrlHandlers; | 30 using extensions::UrlHandlers; |
| 31 using extensions::UrlHandlerInfo; | 31 using extensions::UrlHandlerInfo; |
| 32 | 32 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 request, | 112 request, |
| 113 base::Bind(&LaunchAppWithUrl, | 113 base::Bind(&LaunchAppWithUrl, |
| 114 scoped_refptr<const Extension>(*iter), | 114 scoped_refptr<const Extension>(*iter), |
| 115 handler->id)); | 115 handler->id)); |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 | 118 |
| 119 DVLOG(1) << "Skipping redirection: no matching app handler found"; | 119 DVLOG(1) << "Skipping redirection: no matching app handler found"; |
| 120 return NULL; | 120 return NULL; |
| 121 } | 121 } |
| OLD | NEW |