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

Side by Side Diff: chrome/browser/gtk/download_item_gtk.cc

Issue 3145001: FBTF: Clean up task.h in x11_util.h and header usage in some delegates. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: more Created 10 years, 4 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
OLDNEW
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/gtk/download_item_gtk.h" 5 #include "chrome/browser/gtk/download_item_gtk.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 "app/slide_animation.h" 9 #include "app/slide_animation.h"
10 #include "app/text_elider.h" 10 #include "app/text_elider.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/histogram.h" 13 #include "base/histogram.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/utf_string_conversions.h"
16 #include "chrome/browser/browser.h" 17 #include "chrome/browser/browser.h"
17 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/download/download_item.h" 19 #include "chrome/browser/download/download_item.h"
19 #include "chrome/browser/download/download_item_model.h" 20 #include "chrome/browser/download/download_item_model.h"
20 #include "chrome/browser/download/download_manager.h" 21 #include "chrome/browser/download/download_manager.h"
21 #include "chrome/browser/download/download_shelf.h" 22 #include "chrome/browser/download/download_shelf.h"
22 #include "chrome/browser/download/download_util.h" 23 #include "chrome/browser/download/download_util.h"
23 #include "chrome/browser/gtk/custom_drag.h" 24 #include "chrome/browser/gtk/custom_drag.h"
24 #include "chrome/browser/gtk/download_shelf_gtk.h" 25 #include "chrome/browser/gtk/download_shelf_gtk.h"
25 #include "chrome/browser/gtk/gtk_theme_provider.h" 26 #include "chrome/browser/gtk/gtk_theme_provider.h"
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 get_download()->DangerousDownloadValidated(); 852 get_download()->DangerousDownloadValidated();
852 } 853 }
853 854
854 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button) { 855 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button) {
855 UMA_HISTOGRAM_LONG_TIMES("clickjacking.discard_download", 856 UMA_HISTOGRAM_LONG_TIMES("clickjacking.discard_download",
856 base::Time::Now() - creation_time_); 857 base::Time::Now() - creation_time_);
857 if (get_download()->state() == DownloadItem::IN_PROGRESS) 858 if (get_download()->state() == DownloadItem::IN_PROGRESS)
858 get_download()->Cancel(true); 859 get_download()->Cancel(true);
859 get_download()->Remove(true); 860 get_download()->Remove(true);
860 } 861 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc ('k') | chrome/browser/gtk/extension_install_prompt2_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698