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

Side by Side Diff: content/browser/download/download_file_impl.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
7 7
8 #include "content/browser/download/download_file.h" 8 #include "content/browser/download/download_file.h"
9 9
10 #include <stddef.h>
11 #include <stdint.h>
12
13 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h" 17 #include "base/time/time.h"
14 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
15 #include "content/browser/byte_stream.h" 19 #include "content/browser/byte_stream.h"
16 #include "content/browser/download/base_file.h" 20 #include "content/browser/download/base_file.h"
17 #include "content/browser/download/rate_estimator.h" 21 #include "content/browser/download/rate_estimator.h"
18 #include "content/public/browser/download_save_info.h" 22 #include "content/public/browser/download_save_info.h"
19 #include "net/log/net_log.h" 23 #include "net/log/net_log.h"
(...skipping 29 matching lines...) Expand all
49 // DownloadFile functions. 53 // DownloadFile functions.
50 void Initialize(const InitializeCallback& callback) override; 54 void Initialize(const InitializeCallback& callback) override;
51 void RenameAndUniquify(const base::FilePath& full_path, 55 void RenameAndUniquify(const base::FilePath& full_path,
52 const RenameCompletionCallback& callback) override; 56 const RenameCompletionCallback& callback) override;
53 void RenameAndAnnotate(const base::FilePath& full_path, 57 void RenameAndAnnotate(const base::FilePath& full_path,
54 const RenameCompletionCallback& callback) override; 58 const RenameCompletionCallback& callback) override;
55 void Detach() override; 59 void Detach() override;
56 void Cancel() override; 60 void Cancel() override;
57 base::FilePath FullPath() const override; 61 base::FilePath FullPath() const override;
58 bool InProgress() const override; 62 bool InProgress() const override;
59 int64 CurrentSpeed() const override; 63 int64_t CurrentSpeed() const override;
60 bool GetHash(std::string* hash) override; 64 bool GetHash(std::string* hash) override;
61 std::string GetHashState() override; 65 std::string GetHashState() override;
62 void SetClientGuid(const std::string& guid) override; 66 void SetClientGuid(const std::string& guid) override;
63 67
64 protected: 68 protected:
65 // For test class overrides. 69 // For test class overrides.
66 virtual DownloadInterruptReason AppendDataToFile( 70 virtual DownloadInterruptReason AppendDataToFile(
67 const char* data, size_t data_len); 71 const char* data, size_t data_len);
68 72
69 virtual base::TimeDelta GetRetryDelayForFailedRename(int attempt_number); 73 virtual base::TimeDelta GetRetryDelayForFailedRename(int attempt_number);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 base::WeakPtr<DownloadDestinationObserver> observer_; 133 base::WeakPtr<DownloadDestinationObserver> observer_;
130 134
131 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; 135 base::WeakPtrFactory<DownloadFileImpl> weak_factory_;
132 136
133 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); 137 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl);
134 }; 138 };
135 139
136 } // namespace content 140 } // namespace content
137 141
138 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 142 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_file.h ('k') | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698