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

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

Issue 152143003: [ProtocolHandlers] Add a permission bubble client for RPH requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaks 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_REQU EST_H_
6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_REQU EST_H_
7
8 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
9 #include "chrome/common/custom_handlers/protocol_handler.h"
10
11 class ProtocolHandlerRegistry;
12
13 // This class provides display data for a permission bubble request, shown when
14 // a page wants to register a protocol handler and was triggered by a user
15 // action.
16 class RegisterProtocolHandlerPermissionRequest
17 : public PermissionBubbleRequest {
18 public:
19 RegisterProtocolHandlerPermissionRequest(
20 ProtocolHandlerRegistry* registry,
21 const ProtocolHandler& handler);
22 virtual ~RegisterProtocolHandlerPermissionRequest();
23
24 // PermissionBubbleRequest:
25 virtual base::string16 GetMessageText() const OVERRIDE;
26 virtual base::string16 GetMessageTextFragment() const OVERRIDE;
27 virtual base::string16 GetAlternateAcceptButtonText() const OVERRIDE;
28 virtual base::string16 GetAlternateDenyButtonText() const OVERRIDE;
29 virtual void PermissionGranted() OVERRIDE;
30 virtual void PermissionDenied() OVERRIDE;
31 virtual void Cancelled() OVERRIDE;
32 virtual void RequestFinished() OVERRIDE;
33
34 private:
35 ProtocolHandlerRegistry* registry_;
36 ProtocolHandler handler_;
37
38 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionRequest);
39 };
40
41 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_R EQUEST_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/custom_handlers/register_protocol_handler_permission_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698