| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/download/download_permission_request.h" | 5 #include "chrome/browser/download/download_permission_request.h" |
| 6 | 6 |
| 7 #include "chrome/grit/generated_resources.h" |
| 7 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
| 8 #include "grit/generated_resources.h" | |
| 9 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| 11 | 11 |
| 12 DownloadPermissionRequest::DownloadPermissionRequest( | 12 DownloadPermissionRequest::DownloadPermissionRequest( |
| 13 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host) | 13 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host) |
| 14 : host_(host) {} | 14 : host_(host) {} |
| 15 | 15 |
| 16 DownloadPermissionRequest::~DownloadPermissionRequest() {} | 16 DownloadPermissionRequest::~DownloadPermissionRequest() {} |
| 17 | 17 |
| 18 int DownloadPermissionRequest::GetIconID() const { | 18 int DownloadPermissionRequest::GetIconID() const { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 | 57 |
| 58 void DownloadPermissionRequest::Cancelled() { | 58 void DownloadPermissionRequest::Cancelled() { |
| 59 // TODO(gbillock): There's currently no suitable method for telling the host | 59 // TODO(gbillock): There's currently no suitable method for telling the host |
| 60 // that a request is cancelled. | 60 // that a request is cancelled. |
| 61 } | 61 } |
| 62 | 62 |
| 63 void DownloadPermissionRequest::RequestFinished() { | 63 void DownloadPermissionRequest::RequestFinished() { |
| 64 delete this; | 64 delete this; |
| 65 } | 65 } |
| OLD | NEW |