Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / pdf / browser / open_pdf_in_reader_prompt_client.h
blob854e6f4d423cb2f4987842a104df323eb712eb3f
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 COMPONENTS_PDF_BROWSER_OPEN_PDF_IN_READER_PROMPT_CLIENT_H_
6 #define COMPONENTS_PDF_BROWSER_OPEN_PDF_IN_READER_PROMPT_CLIENT_H_
8 #include "base/strings/string16.h"
10 namespace content {
11 struct LoadCommittedDetails;
14 namespace pdf {
16 class OpenPDFInReaderPromptClient {
17 public:
18 virtual ~OpenPDFInReaderPromptClient() {}
20 virtual base::string16 GetMessageText() const = 0;
22 virtual base::string16 GetAcceptButtonText() const = 0;
24 virtual base::string16 GetCancelButtonText() const = 0;
26 virtual bool ShouldExpire(
27 const content::LoadCommittedDetails& details) const = 0;
29 virtual void Accept() = 0;
31 virtual void Cancel() = 0;
34 } // namespace pdf
36 #endif // COMPONENTS_PDF_BROWSER_OPEN_PDF_IN_READER_PROMPT_CLIENT_H_