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

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

Issue 3127009: Convert infobar APIs to UTF-16. (Closed)
Patch Set: works Created 10 years, 4 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
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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/download/download_request_limiter.h" 10 #include "chrome/browser/download/download_request_limiter.h"
(...skipping 11 matching lines...) Expand all
22 TabContents* tab, DownloadRequestLimiter::TabDownloadState* host); 22 TabContents* tab, DownloadRequestLimiter::TabDownloadState* host);
23 23
24 virtual ~DownloadRequestInfoBarDelegate(); 24 virtual ~DownloadRequestInfoBarDelegate();
25 25
26 void set_host(DownloadRequestLimiter::TabDownloadState* host) { 26 void set_host(DownloadRequestLimiter::TabDownloadState* host) {
27 host_ = host; 27 host_ = host;
28 } 28 }
29 29
30 virtual void InfoBarClosed(); 30 virtual void InfoBarClosed();
31 31
32 virtual std::wstring GetMessageText() const; 32 virtual string16 GetMessageText() const;
33 33
34 virtual SkBitmap* GetIcon() const; 34 virtual SkBitmap* GetIcon() const;
35 35
36 virtual int GetButtons() const; 36 virtual int GetButtons() const;
37 37
38 virtual std::wstring GetButtonLabel( 38 virtual string16 GetButtonLabel(
39 ConfirmInfoBarDelegate::InfoBarButton button) const; 39 ConfirmInfoBarDelegate::InfoBarButton button) const;
40 40
41 virtual bool Accept(); 41 virtual bool Accept();
42 42
43 virtual bool Cancel(); 43 virtual bool Cancel();
44 44
45 private: 45 private:
46 DownloadRequestLimiter::TabDownloadState* host_; 46 DownloadRequestLimiter::TabDownloadState* host_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(DownloadRequestInfoBarDelegate); 48 DISALLOW_COPY_AND_ASSIGN(DownloadRequestInfoBarDelegate);
49 }; 49 };
50 50
51 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_ 51 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698