summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/pdf/open_pdf_in_reader_prompt_delegate.h
blob: b2e796cbbef179a3e440a9edd0898347e682d226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_
#define CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_

#include "base/string16.h"

namespace content {
struct LoadCommittedDetails;
}

class OpenPDFInReaderPromptDelegate {
 public:
  virtual ~OpenPDFInReaderPromptDelegate() {}

  virtual string16 GetMessageText() const = 0;

  virtual string16 GetAcceptButtonText() const = 0;

  virtual string16 GetCancelButtonText() const = 0;

  virtual bool ShouldExpire(
      const content::LoadCommittedDetails& details) const = 0;

  virtual void Accept() = 0;

  virtual void Cancel() = 0;
};

#endif  // CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_