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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rearranged structures for greater consistency. 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 | 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 // 22 //
23 // DownloadRequestHandleInterface is defined for mocking purposes. 23 // DownloadRequestHandleInterface is defined for mocking purposes.
24 class CONTENT_EXPORT DownloadRequestHandleInterface { 24 class CONTENT_EXPORT DownloadRequestHandleInterface {
25 public: 25 public:
26 virtual ~DownloadRequestHandleInterface() {} 26 virtual ~DownloadRequestHandleInterface() {}
27 27
28 // These functions must be called on the UI thread. 28 // These functions must be called on the UI thread.
29 virtual TabContents* GetTabContents() const = 0; 29 virtual TabContents* GetTabContents() const = 0;
30 virtual DownloadManager* GetDownloadManager() const = 0; 30 virtual DownloadManager* GetDownloadManager() const = 0;
31 31
32 // Pause or resume the matching URL request. 32 // Pauses or resumes the matching URL request.
33 virtual void PauseRequest() const = 0; 33 virtual void PauseRequest() const = 0;
34 virtual void ResumeRequest() const = 0; 34 virtual void ResumeRequest() const = 0;
35 35
36 // Cancel the request. 36 // Cancels the request.
37 virtual void CancelRequest() const = 0; 37 virtual void CancelRequest() const = 0;
38 38
39 // Describe the object. 39 // Describe the object.
40 virtual std::string DebugString() const = 0; 40 virtual std::string DebugString() const = 0;
41 }; 41 };
42 42
43 43
44 class CONTENT_EXPORT DownloadRequestHandle 44 class CONTENT_EXPORT DownloadRequestHandle
45 : public DownloadRequestHandleInterface { 45 : public DownloadRequestHandleInterface {
46 public: 46 public:
(...skipping 28 matching lines...) Expand all
75 int child_id_; 75 int child_id_;
76 76
77 // The ID of the render view that started the download. 77 // The ID of the render view that started the download.
78 int render_view_id_; 78 int render_view_id_;
79 79
80 // The ID associated with the request used for the download. 80 // The ID associated with the request used for the download.
81 int request_id_; 81 int request_id_;
82 }; 82 };
83 83
84 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_ 84 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698