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

Side by Side Diff: chrome/browser/download/download_util.cc

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Retrying upload after AppEngine error Created 9 years, 11 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) 2010 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 // Download utility implementation 5 // Download utility implementation
6 6
7 #include "chrome/browser/download/download_util.h" 7 #include "chrome/browser/download/download_util.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <shobjidl.h> 10 #include <shobjidl.h>
11 #endif 11 #endif
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "chrome/browser/gtk/custom_drag.h" 68 #include "chrome/browser/gtk/custom_drag.h"
69 #endif // defined(TOOLKIT_GTK) 69 #endif // defined(TOOLKIT_GTK)
70 #endif // defined(TOOLKIT_USES_GTK) 70 #endif // defined(TOOLKIT_USES_GTK)
71 71
72 #if defined(OS_WIN) 72 #if defined(OS_WIN)
73 #include "app/os_exchange_data_provider_win.h" 73 #include "app/os_exchange_data_provider_win.h"
74 #include "app/win/drag_source.h" 74 #include "app/win/drag_source.h"
75 #include "app/win/win_util.h" 75 #include "app/win/win_util.h"
76 #include "base/win/scoped_comptr.h" 76 #include "base/win/scoped_comptr.h"
77 #include "chrome/browser/browser_list.h" 77 #include "chrome/browser/browser_list.h"
78 #include "chrome/browser/views/frame/browser_view.h" 78 #include "chrome/browser/ui/views/frame/browser_view.h"
79 #endif 79 #endif
80 80
81 namespace download_util { 81 namespace download_util {
82 82
83 // How many times to cycle the complete animation. This should be an odd number 83 // How many times to cycle the complete animation. This should be an odd number
84 // so that the animation ends faded out. 84 // so that the animation ends faded out.
85 static const int kCompleteAnimationCycles = 5; 85 static const int kCompleteAnimationCycles = 5;
86 86
87 // The maximum number of 'uniquified' files we will try to create. 87 // The maximum number of 'uniquified' files we will try to create.
88 // This is used when the filename we're trying to download is already in use, 88 // This is used when the filename we're trying to download is already in use,
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { 767 !service->IsDownloadFromGallery(info->url, info->referrer_url)) {
768 // Extensions that are not from the gallery are considered dangerous. 768 // Extensions that are not from the gallery are considered dangerous.
769 return true; 769 return true;
770 } 770 }
771 } 771 }
772 772
773 return false; 773 return false;
774 } 774 }
775 775
776 } // namespace download_util 776 } // namespace download_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698