| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/filebrowse_ui.h" | 5 #include "chrome/browser/dom_ui/filebrowse_ui.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/singleton.h" | 15 #include "base/singleton.h" |
| 16 #include "base/string_piece.h" | 16 #include "base/string_piece.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "base/thread.h" | 18 #include "base/thread.h" |
| 19 #include "base/time.h" | 19 #include "base/time.h" |
| 20 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
| 21 #include "base/values.h" | 21 #include "base/values.h" |
| 22 #include "base/weak_ptr.h" | 22 #include "base/weak_ptr.h" |
| 23 #include "chrome/browser/bookmarks/bookmark_model.h" | 23 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 24 #include "chrome/browser/browser.h" | |
| 25 #include "chrome/browser/browser_list.h" | |
| 26 #include "chrome/browser/browser_thread.h" | 24 #include "chrome/browser/browser_thread.h" |
| 27 #include "chrome/browser/browser_window.h" | |
| 28 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" | 25 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" |
| 29 #include "chrome/browser/dom_ui/mediaplayer_ui.h" | 26 #include "chrome/browser/dom_ui/mediaplayer_ui.h" |
| 30 #include "chrome/browser/download/download_item.h" | 27 #include "chrome/browser/download/download_item.h" |
| 31 #include "chrome/browser/download/download_manager.h" | 28 #include "chrome/browser/download/download_manager.h" |
| 32 #include "chrome/browser/download/download_util.h" | 29 #include "chrome/browser/download/download_util.h" |
| 33 #include "chrome/browser/history/history_types.h" | 30 #include "chrome/browser/history/history_types.h" |
| 34 #include "chrome/browser/metrics/user_metrics.h" | 31 #include "chrome/browser/metrics/user_metrics.h" |
| 35 #include "chrome/browser/profile.h" | 32 #include "chrome/browser/profile.h" |
| 36 #include "chrome/browser/tab_contents/tab_contents.h" | 33 #include "chrome/browser/tab_contents/tab_contents.h" |
| 37 #include "chrome/browser/tabs/tab_strip_model.h" | 34 #include "chrome/browser/tabs/tab_strip_model.h" |
| 35 #include "chrome/browser/ui/browser.h" |
| 36 #include "chrome/browser/ui/browser_list.h" |
| 38 #include "chrome/browser/ui/browser_navigator.h" | 37 #include "chrome/browser/ui/browser_navigator.h" |
| 38 #include "chrome/browser/ui/browser_window.h" |
| 39 #include "chrome/common/chrome_paths.h" | 39 #include "chrome/common/chrome_paths.h" |
| 40 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
| 41 #include "chrome/common/jstemplate_builder.h" | 41 #include "chrome/common/jstemplate_builder.h" |
| 42 #include "chrome/common/net/url_fetcher.h" | 42 #include "chrome/common/net/url_fetcher.h" |
| 43 #include "chrome/common/time_format.h" | 43 #include "chrome/common/time_format.h" |
| 44 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
| 45 #include "grit/browser_resources.h" | 45 #include "grit/browser_resources.h" |
| 46 #include "grit/chromium_strings.h" | 46 #include "grit/chromium_strings.h" |
| 47 #include "grit/generated_resources.h" | 47 #include "grit/generated_resources.h" |
| 48 #include "grit/locale_settings.h" | 48 #include "grit/locale_settings.h" |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 } | 1187 } |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 return NULL; | 1190 return NULL; |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 const int FileBrowseUI::kPopupWidth = 250; | 1193 const int FileBrowseUI::kPopupWidth = 250; |
| 1194 const int FileBrowseUI::kPopupHeight = 300; | 1194 const int FileBrowseUI::kPopupHeight = 300; |
| 1195 const int FileBrowseUI::kSmallPopupWidth = 250; | 1195 const int FileBrowseUI::kSmallPopupWidth = 250; |
| 1196 const int FileBrowseUI::kSmallPopupHeight = 50; | 1196 const int FileBrowseUI::kSmallPopupHeight = 50; |
| OLD | NEW |