nacl_infobar_delegate.h revision ca12bfac764ba476d6cd062bf1dde12cc64c3f40
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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_
6#define CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_
7
8#include "chrome/browser/infobars/confirm_infobar_delegate.h"
9
10class NaClInfoBarDelegate : public ConfirmInfoBarDelegate {
11 public:
12  // Creates a NaCl infobar delegate and adds it to the infobar service
13  // corresponding to the given render process and view IDs.
14  static void Create(int render_process_id, int render_view_id);
15
16 private:
17  explicit NaClInfoBarDelegate(InfoBarService* infobar_service);
18  virtual ~NaClInfoBarDelegate();
19
20  virtual string16 GetMessageText() const OVERRIDE;
21  virtual int GetButtons() const OVERRIDE;
22  virtual string16 GetLinkText() const OVERRIDE;
23  virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
24
25  DISALLOW_COPY_AND_ASSIGN(NaClInfoBarDelegate);
26};
27
28#endif  // CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_
29