Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / nacl_host / nacl_infobar_delegate.h
blob9b27f47c01e3ccd55258828cb8d17036ef4b8304
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.
5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_
8 #include "components/infobars/core/confirm_infobar_delegate.h"
10 class NaClInfoBarDelegate : public ConfirmInfoBarDelegate {
11 public:
12 // Creates a NaCl infobar and delegate and adds the infobar to the infobar
13 // service corresponding to the given render process and view IDs.
14 static void Create(int render_process_id, int render_view_id);
16 private:
17 NaClInfoBarDelegate();
18 ~NaClInfoBarDelegate() override;
20 base::string16 GetMessageText() const override;
21 int GetButtons() const override;
22 base::string16 GetLinkText() const override;
23 bool LinkClicked(WindowOpenDisposition disposition) override;
25 DISALLOW_COPY_AND_ASSIGN(NaClInfoBarDelegate);
28 #endif // CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_