Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/browser/ui/external_protocol_dialog_delegate.h

Issue 107033003: Stop using GetDefaultProfile() in Chrome OS implementation of platform_util::OpenExternal() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove is_valid check Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_
6 #define CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "chrome/browser/ui/protocol_dialog_delegate.h" 11 #include "chrome/browser/ui/protocol_dialog_delegate.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 // Provides text for the external protocol handler dialog and handles whether 14 // Provides text for the external protocol handler dialog and handles whether
15 // or not to launch the application for the given protocol. 15 // or not to launch the application for the given protocol.
16 class ExternalProtocolDialogDelegate : public ProtocolDialogDelegate { 16 class ExternalProtocolDialogDelegate : public ProtocolDialogDelegate {
17 public: 17 public:
18 explicit ExternalProtocolDialogDelegate(const GURL& url); 18 explicit ExternalProtocolDialogDelegate(const GURL& url,
19 int render_process_host_id,
20 int tab_contents_id);
19 virtual ~ExternalProtocolDialogDelegate(); 21 virtual ~ExternalProtocolDialogDelegate();
20 22
21 virtual void DoAccept(const GURL& url, bool dont_block) const OVERRIDE; 23 virtual void DoAccept(const GURL& url, bool dont_block) const OVERRIDE;
22 virtual void DoCancel(const GURL& url, bool dont_block) const OVERRIDE; 24 virtual void DoCancel(const GURL& url, bool dont_block) const OVERRIDE;
23 25
24 virtual base::string16 GetMessageText() const OVERRIDE; 26 virtual base::string16 GetMessageText() const OVERRIDE;
25 virtual base::string16 GetCheckboxText() const OVERRIDE; 27 virtual base::string16 GetCheckboxText() const OVERRIDE;
26 virtual base::string16 GetTitleText() const OVERRIDE; 28 virtual base::string16 GetTitleText() const OVERRIDE;
29
30 private:
31 int render_process_host_id_;
32 int tab_contents_id_;
27 }; 33 };
28 34
29 #endif // CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_ 35 #endif // CHROME_BROWSER_UI_EXTERNAL_PROTOCOL_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/external_protocol_dialog.mm ('k') | chrome/browser/ui/external_protocol_dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698