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

Side by Side Diff: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h

Issue 6926001: Replace the virtual InfoBarDelegate::InfoBarClosed() function with a non-virtual one. This is a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_ 5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_
6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_ 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "chrome/browser/custom_handlers/protocol_handler.h" 10 #include "chrome/browser/custom_handlers/protocol_handler.h"
11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
12 12
13 class SkBitmap; 13 class SkBitmap;
14 class ProtocolHandlerRegistry; 14 class ProtocolHandlerRegistry;
15 class TabContents; 15 class TabContents;
16 16
17 // An InfoBar delegate that enables the user to allow or deny storing credit 17 // An InfoBar delegate that enables the user to allow or deny storing credit
18 // card information gathered from a form submission. 18 // card information gathered from a form submission.
19 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { 19 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate {
20 public: 20 public:
21 RegisterProtocolHandlerInfoBarDelegate(TabContents* tab_contents, 21 RegisterProtocolHandlerInfoBarDelegate(TabContents* tab_contents,
22 ProtocolHandlerRegistry* registry, 22 ProtocolHandlerRegistry* registry,
23 ProtocolHandler handler); 23 ProtocolHandler handler);
24 24
25 // ConfirmInfoBarDelegate: 25 // ConfirmInfoBarDelegate:
26 virtual bool ShouldExpire(const NavigationController::LoadCommittedDetails& 26 virtual bool ShouldExpire(const NavigationController::LoadCommittedDetails&
27 details) const OVERRIDE; 27 details) const OVERRIDE;
28 virtual void InfoBarClosed() OVERRIDE;
29 virtual Type GetInfoBarType() const OVERRIDE; 28 virtual Type GetInfoBarType() const OVERRIDE;
30 virtual string16 GetMessageText() const OVERRIDE; 29 virtual string16 GetMessageText() const OVERRIDE;
31 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 30 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
32 virtual bool Accept() OVERRIDE; 31 virtual bool Accept() OVERRIDE;
33 virtual bool Cancel() OVERRIDE; 32 virtual bool Cancel() OVERRIDE;
34 virtual string16 GetLinkText() OVERRIDE; 33 virtual string16 GetLinkText() OVERRIDE;
35 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 34 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
36 35
37 private: 36 private:
38 TabContents* tab_contents_; 37 TabContents* tab_contents_;
39 ProtocolHandlerRegistry* registry_; 38 ProtocolHandlerRegistry* registry_;
40 ProtocolHandler handler_; 39 ProtocolHandler handler_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); 41 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate);
43 }; 42 };
44 43
45 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE GATE_H_ 44 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE GATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698