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

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

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: sql::MetaTable.next_download_id, DownloadId, DownloadManager::GetNextId() Created 9 years, 5 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) 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 // 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>
(...skipping 12 matching lines...) Expand all
23 #include "base/sys_string_conversions.h" 23 #include "base/sys_string_conversions.h"
24 #include "base/threading/thread_restrictions.h" 24 #include "base/threading/thread_restrictions.h"
25 #include "base/utf_string_conversions.h" 25 #include "base/utf_string_conversions.h"
26 #include "base/value_conversions.h" 26 #include "base/value_conversions.h"
27 #include "base/values.h" 27 #include "base/values.h"
28 #include "base/win/windows_version.h" 28 #include "base/win/windows_version.h"
29 #include "chrome/browser/download/download_create_info.h" 29 #include "chrome/browser/download/download_create_info.h"
30 #include "chrome/browser/download/download_extensions.h" 30 #include "chrome/browser/download/download_extensions.h"
31 #include "chrome/browser/download/download_item.h" 31 #include "chrome/browser/download/download_item.h"
32 #include "chrome/browser/download/download_item_model.h" 32 #include "chrome/browser/download/download_item_model.h"
33 #include "chrome/browser/download/download_manager.h"
34 #include "chrome/browser/download/download_types.h" 33 #include "chrome/browser/download/download_types.h"
35 #include "chrome/browser/profiles/profile.h" 34 #include "chrome/browser/profiles/profile.h"
36 #include "chrome/browser/ui/browser.h" 35 #include "chrome/browser/ui/browser.h"
37 #include "chrome/common/chrome_notification_types.h" 36 #include "chrome/common/chrome_notification_types.h"
38 #include "chrome/common/chrome_paths.h" 37 #include "chrome/common/chrome_paths.h"
39 #include "chrome/common/time_format.h" 38 #include "chrome/common/time_format.h"
40 #include "content/browser/browser_thread.h" 39 #include "content/browser/browser_thread.h"
41 #include "content/browser/renderer_host/render_view_host.h" 40 #include "content/browser/renderer_host/render_view_host.h"
42 #include "content/browser/renderer_host/resource_dispatcher_host.h" 41 #include "content/browser/renderer_host/resource_dispatcher_host.h"
43 #include "content/browser/tab_contents/tab_contents.h" 42 #include "content/browser/tab_contents/tab_contents.h"
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 FilePath GetCrDownloadPath(const FilePath& suggested_path) { 911 FilePath GetCrDownloadPath(const FilePath& suggested_path) {
913 FilePath::StringType file_name; 912 FilePath::StringType file_name;
914 base::SStringPrintf( 913 base::SStringPrintf(
915 &file_name, 914 &file_name,
916 PRFilePathLiteral FILE_PATH_LITERAL(".crdownload"), 915 PRFilePathLiteral FILE_PATH_LITERAL(".crdownload"),
917 suggested_path.value().c_str()); 916 suggested_path.value().c_str());
918 return FilePath(file_name); 917 return FilePath(file_name);
919 } 918 }
920 919
921 } // namespace download_util 920 } // namespace download_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698