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

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

Issue 11571025: Initial CL for Downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated Pawel's comment. Created 7 years, 11 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) 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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 19 matching lines...) Expand all
30 virtual WebContents* GetWebContents() const = 0; 30 virtual WebContents* GetWebContents() const = 0;
31 virtual DownloadManager* GetDownloadManager() const = 0; 31 virtual DownloadManager* GetDownloadManager() const = 0;
32 32
33 // Pauses or resumes the matching URL request. 33 // Pauses or resumes the matching URL request.
34 virtual void PauseRequest() const = 0; 34 virtual void PauseRequest() const = 0;
35 virtual void ResumeRequest() const = 0; 35 virtual void ResumeRequest() const = 0;
36 36
37 // Cancels the request. 37 // Cancels the request.
38 virtual void CancelRequest() const = 0; 38 virtual void CancelRequest() const = 0;
39 39
40 // Describe the object. 40 // Describes the object.
41 virtual std::string DebugString() const = 0; 41 virtual std::string DebugString() const = 0;
42 }; 42 };
43 43
44 44
45 class CONTENT_EXPORT DownloadRequestHandle 45 class CONTENT_EXPORT DownloadRequestHandle
46 : public DownloadRequestHandleInterface { 46 : public DownloadRequestHandleInterface {
47 public: 47 public:
48 virtual ~DownloadRequestHandle(); 48 virtual ~DownloadRequestHandle();
49 49
50 // Create a null DownloadRequestHandle: getters will return null, and 50 // Create a null DownloadRequestHandle: getters will return null, and
(...skipping 28 matching lines...) Expand all
79 // The ID of the render view that started the download. 79 // The ID of the render view that started the download.
80 int render_view_id_; 80 int render_view_id_;
81 81
82 // The ID associated with the request used for the download. 82 // The ID associated with the request used for the download.
83 int request_id_; 83 int request_id_;
84 }; 84 };
85 85
86 } // namespace content 86 } // namespace content
87 87
88 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_ 88 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_net_log_parameters.cc ('k') | content/browser/download/download_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698