OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/webui/active_downloads_ui.h" | 5 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
31 #include "chrome/browser/tabs/tab_strip_model.h" | 31 #include "chrome/browser/tabs/tab_strip_model.h" |
32 #include "chrome/browser/ui/browser.h" | 32 #include "chrome/browser/ui/browser.h" |
33 #include "chrome/browser/ui/browser_list.h" | 33 #include "chrome/browser/ui/browser_list.h" |
34 #include "chrome/browser/ui/browser_window.h" | 34 #include "chrome/browser/ui/browser_window.h" |
35 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 35 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
36 #include "chrome/browser/ui/webui/favicon_source.h" | 36 #include "chrome/browser/ui/webui/favicon_source.h" |
37 #include "chrome/common/chrome_paths.h" | 37 #include "chrome/common/chrome_paths.h" |
38 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
39 #include "chrome/common/jstemplate_builder.h" | 39 #include "chrome/common/jstemplate_builder.h" |
40 #include "chrome/common/net/url_fetcher.h" | |
41 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
42 #include "content/browser/browser_thread.h" | 41 #include "content/browser/browser_thread.h" |
43 #include "content/browser/tab_contents/tab_contents.h" | 42 #include "content/browser/tab_contents/tab_contents.h" |
| 43 #include "content/common/url_fetcher.h" |
44 #include "grit/browser_resources.h" | 44 #include "grit/browser_resources.h" |
45 #include "grit/chromium_strings.h" | 45 #include "grit/chromium_strings.h" |
46 #include "grit/generated_resources.h" | 46 #include "grit/generated_resources.h" |
47 #include "grit/locale_settings.h" | 47 #include "grit/locale_settings.h" |
48 #include "net/base/escape.h" | 48 #include "net/base/escape.h" |
49 #include "net/url_request/url_request_file_job.h" | 49 #include "net/url_request/url_request_file_job.h" |
50 #include "ui/base/l10n/l10n_util.h" | 50 #include "ui/base/l10n/l10n_util.h" |
51 #include "ui/base/resource/resource_bundle.h" | 51 #include "ui/base/resource/resource_bundle.h" |
52 | 52 |
53 namespace { | 53 namespace { |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 if (url.SchemeIs(chrome::kChromeUIScheme) && | 427 if (url.SchemeIs(chrome::kChromeUIScheme) && |
428 url.host() == chrome::kChromeUIActiveDownloadsHost && | 428 url.host() == chrome::kChromeUIActiveDownloadsHost && |
429 (*it)->profile() == profile) { | 429 (*it)->profile() == profile) { |
430 return (*it); | 430 return (*it); |
431 } | 431 } |
432 } | 432 } |
433 } | 433 } |
434 return NULL; | 434 return NULL; |
435 } | 435 } |
436 | 436 |
OLD | NEW |