No longer register app window placement preference keys on
[chromium-blink-merge.git] / chrome / browser / ui / external_protocol_dialog_delegate.h
blobf925648716af308371ae69e9c79df95bd03c7272
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.
5 #ifndef CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_
6 #define CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_
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"
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 int render_process_host_id,
20 int tab_contents_id);
21 virtual ~ExternalProtocolDialogDelegate();
23 const base::string16& program_name() const { return program_name_; }
25 virtual void DoAccept(const GURL& url, bool dont_block) const OVERRIDE;
26 virtual void DoCancel(const GURL& url, bool dont_block) const OVERRIDE;
28 virtual base::string16 GetMessageText() const OVERRIDE;
29 virtual base::string16 GetCheckboxText() const OVERRIDE;
30 virtual base::string16 GetTitleText() const OVERRIDE;
32 private:
33 int render_process_host_id_;
34 int tab_contents_id_;
35 const base::string16 program_name_;
37 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialogDelegate);
40 #endif // CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_