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

Side by Side Diff: chrome/browser/download/download_request_infobar_delegate.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_request_infobar_delegate.h" 5 #include "chrome/browser/download/download_request_infobar_delegate.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "chrome/browser/tab_contents/tab_contents.h" 8 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
11 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
11 #include "ui/base/resource/resource_bundle.h"
12 12
13 DownloadRequestInfoBarDelegate::DownloadRequestInfoBarDelegate(TabContents* tab, 13 DownloadRequestInfoBarDelegate::DownloadRequestInfoBarDelegate(TabContents* tab,
14 DownloadRequestLimiter::TabDownloadState* host) 14 DownloadRequestLimiter::TabDownloadState* host)
15 : ConfirmInfoBarDelegate(tab), 15 : ConfirmInfoBarDelegate(tab),
16 host_(host) { 16 host_(host) {
17 if (tab) 17 if (tab)
18 tab->AddInfoBar(this); 18 tab->AddInfoBar(this);
19 } 19 }
20 20
21 DownloadRequestInfoBarDelegate::~DownloadRequestInfoBarDelegate() { 21 DownloadRequestInfoBarDelegate::~DownloadRequestInfoBarDelegate() {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return !host_; 57 return !host_;
58 } 58 }
59 59
60 bool DownloadRequestInfoBarDelegate::Cancel() { 60 bool DownloadRequestInfoBarDelegate::Cancel() {
61 if (host_) { 61 if (host_) {
62 host_->Cancel(); 62 host_->Cancel();
63 host_ = NULL; 63 host_ = NULL;
64 } 64 }
65 return true; 65 return true;
66 } 66 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698