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

Side by Side Diff: chrome/browser/custom_handlers/register_protocol_handler_permission_delegate.h

Issue 152143003: [ProtocolHandlers] Add a permission bubble client for RPH requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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
(Empty)
1 // Copyright 2014 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_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_DELE GATE_H_
6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_DELE GATE_H_
7
8 #include "chrome/browser/ui/website_settings/permission_bubble_delegate.h"
9 #include "chrome/common/custom_handlers/protocol_handler.h"
10
11 class ProtocolHandlerRegistry;
12
13 class RegisterProtocolHandlerPermissionDelegate
koz (OOO until 15th September) 2014/02/06 03:03:26 Could you add a class comment describing when this
Greg Billock 2014/02/06 22:23:49 Yeah, I didn't get the actual call site included.
14 : public PermissionBubbleDelegate {
15 public:
16 RegisterProtocolHandlerPermissionDelegate(
17 ProtocolHandlerRegistry* registry,
18 const ProtocolHandler& handler);
19 virtual ~RegisterProtocolHandlerPermissionDelegate();
20
21 // PermissionBubbleDelegate:
22 virtual base::string16 GetMessageText() const OVERRIDE;
23 virtual base::string16 GetMessageTextFragment() const OVERRIDE;
24 virtual base::string16 GetAlternateAcceptButtonText() const OVERRIDE;
25 virtual base::string16 GetAlternateDenyButtonText() const OVERRIDE;
26 virtual void PermissionGranted() OVERRIDE;
27 virtual void PermissionDenied() OVERRIDE;
28 virtual void Cancelled() OVERRIDE;
29 virtual void RequestFinished() OVERRIDE;
30
31 private:
32 ProtocolHandlerRegistry* registry_;
33 ProtocolHandler handler_;
34
35 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionDelegate);
36 };
37
38 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_D ELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698