| 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 "chrome/browser/download/chrome_download_manager_delegate.h" | 5 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "net/base/filename_util.h" | 49 #include "net/base/filename_util.h" |
| 50 #include "net/base/mime_util.h" | 50 #include "net/base/mime_util.h" |
| 51 | 51 |
| 52 #if defined(OS_ANDROID) | 52 #if defined(OS_ANDROID) |
| 53 #include "chrome/browser/android/download/chrome_download_manager_overwrite_info
bar_delegate.h" | 53 #include "chrome/browser/android/download/chrome_download_manager_overwrite_info
bar_delegate.h" |
| 54 #include "chrome/browser/infobars/infobar_service.h" | 54 #include "chrome/browser/infobars/infobar_service.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 #if defined(OS_CHROMEOS) | 57 #if defined(OS_CHROMEOS) |
| 58 #include "chrome/browser/chromeos/drive/download_handler.h" | 58 #include "chrome/browser/chromeos/drive/download_handler.h" |
| 59 #include "chrome/browser/chromeos/drive/file_system_util.h" | 59 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 #if defined(ENABLE_EXTENSIONS) | 62 #if defined(ENABLE_EXTENSIONS) |
| 63 #include "chrome/browser/extensions/api/downloads/downloads_api.h" | 63 #include "chrome/browser/extensions/api/downloads/downloads_api.h" |
| 64 #include "chrome/browser/extensions/crx_installer.h" | 64 #include "chrome/browser/extensions/crx_installer.h" |
| 65 #include "chrome/browser/extensions/webstore_installer.h" | 65 #include "chrome/browser/extensions/webstore_installer.h" |
| 66 #include "extensions/browser/notification_types.h" | 66 #include "extensions/browser/notification_types.h" |
| 67 #include "extensions/common/constants.h" | 67 #include "extensions/common/constants.h" |
| 68 #endif | 68 #endif |
| 69 | 69 |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 path.MatchesExtension(FILE_PATH_LITERAL(".xht")) || | 752 path.MatchesExtension(FILE_PATH_LITERAL(".xht")) || |
| 753 path.MatchesExtension(FILE_PATH_LITERAL(".xhtm")) || | 753 path.MatchesExtension(FILE_PATH_LITERAL(".xhtm")) || |
| 754 path.MatchesExtension(FILE_PATH_LITERAL(".xhtml")) || | 754 path.MatchesExtension(FILE_PATH_LITERAL(".xhtml")) || |
| 755 path.MatchesExtension(FILE_PATH_LITERAL(".xsl")) || | 755 path.MatchesExtension(FILE_PATH_LITERAL(".xsl")) || |
| 756 path.MatchesExtension(FILE_PATH_LITERAL(".xslt"))) { | 756 path.MatchesExtension(FILE_PATH_LITERAL(".xslt"))) { |
| 757 return true; | 757 return true; |
| 758 } | 758 } |
| 759 #endif | 759 #endif |
| 760 return false; | 760 return false; |
| 761 } | 761 } |
| OLD | NEW |