Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: chrome/browser/dom_ui/downloads_ui.cc

Issue 48019: Removed unneeded includes of base/time.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/downloads_ui.h" 5 #include "chrome/browser/dom_ui/downloads_ui.h"
6 6
7 #include "base/gfx/png_encoder.h" 7 #include "base/gfx/png_encoder.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 #include "base/thread.h" 9 #include "base/thread.h"
10 #include "base/time.h"
11 #include "base/time_format.h" 10 #include "base/time_format.h"
12 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/dom_ui/fileicon_source.h" 12 #include "chrome/browser/dom_ui/fileicon_source.h"
14 #if defined(OS_WIN) 13 #if defined(OS_WIN)
15 // TODO(port): re-enable when download_util is ported 14 // TODO(port): re-enable when download_util is ported
16 #include "chrome/browser/download/download_util.h" 15 #include "chrome/browser/download/download_util.h"
17 #endif 16 #endif
18 #include "chrome/browser/metrics/user_metrics.h" 17 #include "chrome/browser/metrics/user_metrics.h"
19 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profile.h"
20 #include "chrome/common/jstemplate_builder.h" 19 #include "chrome/common/jstemplate_builder.h"
21 #include "chrome/common/l10n_util.h" 20 #include "chrome/common/l10n_util.h"
22 #include "chrome/common/time_format.h" 21 #include "chrome/common/time_format.h"
23 #include "grit/browser_resources.h" 22 #include "grit/browser_resources.h"
24 #include "grit/generated_resources.h" 23 #include "grit/generated_resources.h"
25 24
26 using base::Time;
27
28 // DownloadsUI is accessible from chrome-ui://downloads. 25 // DownloadsUI is accessible from chrome-ui://downloads.
29 static const char kDownloadsHost[] = "downloads"; 26 static const char kDownloadsHost[] = "downloads";
30 27
31 // Maximum number of downloads to show. TODO(glen): Remove this and instead 28 // Maximum number of downloads to show. TODO(glen): Remove this and instead
32 // stuff the downloads down the pipe slowly. 29 // stuff the downloads down the pipe slowly.
33 static const int kMaxDownloads = 150; 30 static const int kMaxDownloads = 150;
34 31
35 /////////////////////////////////////////////////////////////////////////////// 32 ///////////////////////////////////////////////////////////////////////////////
36 // 33 //
37 // DownloadsHTMLSource 34 // DownloadsHTMLSource
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 html_source)); 371 html_source));
375 } 372 }
376 373
377 // static 374 // static
378 GURL DownloadsUI::GetBaseURL() { 375 GURL DownloadsUI::GetBaseURL() {
379 std::string url = DOMUIContents::GetScheme(); 376 std::string url = DOMUIContents::GetScheme();
380 url += "://"; 377 url += "://";
381 url += kDownloadsHost; 378 url += kDownloadsHost;
382 return GURL(url); 379 return GURL(url);
383 } 380 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_table_model.cc ('k') | chrome/browser/download/save_package.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698