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

Side by Side Diff: content/browser/download/base_file.cc

Issue 8392042: Split BrowserThread into public API and private implementation, step 1. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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) 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 "content/browser/download/base_file.h" 5 #include "content/browser/download/base_file.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/threading/thread_restrictions.h" 11 #include "base/threading/thread_restrictions.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "content/browser/browser_thread.h"
14 #include "content/browser/download/download_stats.h" 13 #include "content/browser/download/download_stats.h"
14 #include "content/public/browser/browser_thread.h"
15 #include "content/public/browser/content_browser_client.h" 15 #include "content/public/browser/content_browser_client.h"
16 #include "crypto/secure_hash.h" 16 #include "crypto/secure_hash.h"
17 #include "net/base/file_stream.h" 17 #include "net/base/file_stream.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 19
20 #if defined(OS_WIN) 20 #if defined(OS_WIN)
21 #include <windows.h> 21 #include <windows.h>
22 #include <shellapi.h> 22 #include <shellapi.h>
23 23
24 #include "content/browser/safe_util_win.h" 24 #include "content/browser/safe_util_win.h"
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 std::string BaseFile::DebugString() const { 453 std::string BaseFile::DebugString() const {
454 return base::StringPrintf("{ source_url_ = \"%s\"" 454 return base::StringPrintf("{ source_url_ = \"%s\""
455 " full_path_ = \"%" PRFilePath "\"" 455 " full_path_ = \"%" PRFilePath "\""
456 " bytes_so_far_ = %" PRId64 456 " bytes_so_far_ = %" PRId64
457 " detached_ = %c }", 457 " detached_ = %c }",
458 source_url_.spec().c_str(), 458 source_url_.spec().c_str(),
459 full_path_.value().c_str(), 459 full_path_.value().c_str(),
460 bytes_so_far_, 460 bytes_so_far_,
461 detached_ ? 'T' : 'F'); 461 detached_ ? 'T' : 'F');
462 } 462 }
OLDNEW
« no previous file with comments | « content/browser/device_orientation/provider.cc ('k') | content/browser/download/base_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698