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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |