- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / external_protocol_dialog_delegate.h
1 // Copyright (c) 2013 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_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_
6 #define CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/time/time.h"
11 #include "chrome/browser/ui/protocol_dialog_delegate.h"
12 #include "url/gurl.h"
13
14 // Provides text for the external protocol handler dialog and handles whether
15 // or not to launch the application for the given protocol.
16 class ExternalProtocolDialogDelegate : public ProtocolDialogDelegate {
17  public:
18   explicit ExternalProtocolDialogDelegate(const GURL& url);
19   virtual ~ExternalProtocolDialogDelegate();
20
21   virtual void DoAccept(const GURL& url, bool dont_block) const OVERRIDE;
22   virtual void DoCancel(const GURL& url, bool dont_block) const OVERRIDE;
23
24   virtual string16 GetMessageText() const OVERRIDE;
25   virtual string16 GetCheckboxText() const OVERRIDE;
26   virtual string16 GetTitleText() const OVERRIDE;
27 };
28
29 #endif  // CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_