| OLD | NEW | 
|   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_SAVE_FILE_H_ |   5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_H_ | 
|   6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_H_ |   6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_H_ | 
|   7  |   7  | 
|   8 #include "base/basictypes.h" |   8 #include "base/basictypes.h" | 
|   9 #include "base/files/file_path.h" |   9 #include "base/files/file_path.h" | 
|  10 #include "base/memory/scoped_ptr.h" |  10 #include "base/memory/scoped_ptr.h" | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|  32   void Cancel(); |  32   void Cancel(); | 
|  33   void Finish(); |  33   void Finish(); | 
|  34   void AnnotateWithSourceInformation(); |  34   void AnnotateWithSourceInformation(); | 
|  35   base::FilePath FullPath() const; |  35   base::FilePath FullPath() const; | 
|  36   bool InProgress() const; |  36   bool InProgress() const; | 
|  37   int64 BytesSoFar() const; |  37   int64 BytesSoFar() const; | 
|  38   bool GetHash(std::string* hash); |  38   bool GetHash(std::string* hash); | 
|  39   std::string DebugString() const; |  39   std::string DebugString() const; | 
|  40  |  40  | 
|  41   // Accessors. |  41   // Accessors. | 
|  42   int save_id() const { return info_->save_id; } |  42   int save_item_id() const { return info_->save_item_id; } | 
|  43   int render_process_id() const { return info_->render_process_id; } |  43   int render_process_id() const { return info_->render_process_id; } | 
|  44   int request_id() const { return info_->request_id; } |  44   int request_id() const { return info_->request_id; } | 
|  45   SaveFileCreateInfo::SaveFileSource save_source() const { |  45   SaveFileCreateInfo::SaveFileSource save_source() const { | 
|  46     return info_->save_source; |  46     return info_->save_source; | 
|  47   } |  47   } | 
|  48  |  48  | 
|  49  private: |  49  private: | 
|  50   BaseFile file_; |  50   BaseFile file_; | 
|  51   scoped_ptr<const SaveFileCreateInfo> info_; |  51   scoped_ptr<const SaveFileCreateInfo> info_; | 
|  52  |  52  | 
|  53   DISALLOW_COPY_AND_ASSIGN(SaveFile); |  53   DISALLOW_COPY_AND_ASSIGN(SaveFile); | 
|  54 }; |  54 }; | 
|  55  |  55  | 
|  56 }  // namespace content |  56 }  // namespace content | 
|  57  |  57  | 
|  58 #endif  // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_H_ |  58 #endif  // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_H_ | 
| OLD | NEW |