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 CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Callback for the "discardDangerous" message - specifies that the user | 66 // Callback for the "discardDangerous" message - specifies that the user |
67 // wishes to discard (remove) a dangerous file. | 67 // wishes to discard (remove) a dangerous file. |
68 void HandleDiscardDangerous(const base::ListValue* args); | 68 void HandleDiscardDangerous(const base::ListValue* args); |
69 | 69 |
70 // Callback for the "show" message - shows the file in explorer. | 70 // Callback for the "show" message - shows the file in explorer. |
71 void HandleShow(const base::ListValue* args); | 71 void HandleShow(const base::ListValue* args); |
72 | 72 |
73 // Callback for the "pause" message - pauses the file download. | 73 // Callback for the "pause" message - pauses the file download. |
74 void HandlePause(const base::ListValue* args); | 74 void HandlePause(const base::ListValue* args); |
75 | 75 |
| 76 // Callback for the "resume" message - resumes the file download. |
| 77 void HandleResume(const base::ListValue* args); |
| 78 |
76 // Callback for the "remove" message - removes the file download from shelf | 79 // Callback for the "remove" message - removes the file download from shelf |
77 // and list. | 80 // and list. |
78 void HandleRemove(const base::ListValue* args); | 81 void HandleRemove(const base::ListValue* args); |
79 | 82 |
80 // Callback for the "cancel" message - cancels the download. | 83 // Callback for the "cancel" message - cancels the download. |
81 void HandleCancel(const base::ListValue* args); | 84 void HandleCancel(const base::ListValue* args); |
82 | 85 |
83 // Callback for the "clearAll" message - clears all the downloads. | 86 // Callback for the "clearAll" message - clears all the downloads. |
84 void HandleClearAll(const base::ListValue* args); | 87 void HandleClearAll(const base::ListValue* args); |
85 | 88 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 137 |
135 // Whether a call to SendCurrentDownloads() is currently scheduled. | 138 // Whether a call to SendCurrentDownloads() is currently scheduled. |
136 bool update_scheduled_; | 139 bool update_scheduled_; |
137 | 140 |
138 base::WeakPtrFactory<DownloadsDOMHandler> weak_ptr_factory_; | 141 base::WeakPtrFactory<DownloadsDOMHandler> weak_ptr_factory_; |
139 | 142 |
140 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler); | 143 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler); |
141 }; | 144 }; |
142 | 145 |
143 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ | 146 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ |
OLD | NEW |