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

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

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
OLDNEW
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_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 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" 9 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
10 #include "chrome/common/custom_handlers/protocol_handler.h" 10 #include "chrome/common/custom_handlers/protocol_handler.h"
11 11
12 class InfoBarTabHelper;
erikwright (departed) 2012/08/16 17:25:38 Use the service instead?
Jói 2012/08/17 15:51:24 Done.
12 class ProtocolHandlerRegistry; 13 class ProtocolHandlerRegistry;
13 14
14 // An InfoBar delegate that enables the user to allow or deny storing credit 15 // An InfoBar delegate that enables the user to allow or deny storing credit
15 // card information gathered from a form submission. 16 // card information gathered from a form submission.
16 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { 17 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate {
17 public: 18 public:
18 RegisterProtocolHandlerInfoBarDelegate(InfoBarTabHelper* infobar_helper, 19 RegisterProtocolHandlerInfoBarDelegate(InfoBarTabHelper* infobar_helper,
19 ProtocolHandlerRegistry* registry, 20 ProtocolHandlerRegistry* registry,
20 const ProtocolHandler& handler); 21 const ProtocolHandler& handler);
21 22
(...skipping 17 matching lines...) Expand all
39 private: 40 private:
40 // Returns a user-friendly name for the protocol of this protocol handler. 41 // Returns a user-friendly name for the protocol of this protocol handler.
41 string16 GetProtocolName(const ProtocolHandler& handler) const; 42 string16 GetProtocolName(const ProtocolHandler& handler) const;
42 ProtocolHandlerRegistry* registry_; 43 ProtocolHandlerRegistry* registry_;
43 ProtocolHandler handler_; 44 ProtocolHandler handler_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); 46 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE GATE_H_ 49 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE GATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698