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

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

Issue 2123653006: Rename PermissionBubbleRequest to PermissionRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_manager_rename
Patch Set: Fix missed file Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_REQU EST_H_ 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_ 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_REQU EST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" 9 #include "chrome/browser/permissions/permission_request.h"
10 #include "chrome/common/custom_handlers/protocol_handler.h" 10 #include "chrome/common/custom_handlers/protocol_handler.h"
11 11
12 class ProtocolHandlerRegistry; 12 class ProtocolHandlerRegistry;
13 13
14 // This class provides display data for a permission bubble request, shown when 14 // This class provides display data for a permission request, shown when a page
15 // a page wants to register a protocol handler and was triggered by a user 15 // wants to register a protocol handler and was triggered by a user action.
16 // action. 16 class RegisterProtocolHandlerPermissionRequest : public PermissionRequest {
17 class RegisterProtocolHandlerPermissionRequest
18 : public PermissionBubbleRequest {
19 public: 17 public:
20 RegisterProtocolHandlerPermissionRequest( 18 RegisterProtocolHandlerPermissionRequest(
21 ProtocolHandlerRegistry* registry, 19 ProtocolHandlerRegistry* registry,
22 const ProtocolHandler& handler, 20 const ProtocolHandler& handler,
23 GURL url, 21 GURL url,
24 bool user_gesture); 22 bool user_gesture);
25 ~RegisterProtocolHandlerPermissionRequest() override; 23 ~RegisterProtocolHandlerPermissionRequest() override;
26 24
27 private: 25 private:
28 // PermissionBubbleRequest: 26 // PermissionRequest:
29 gfx::VectorIconId GetVectorIconId() const override; 27 gfx::VectorIconId GetVectorIconId() const override;
30 int GetIconId() const override; 28 int GetIconId() const override;
31 base::string16 GetMessageTextFragment() const override; 29 base::string16 GetMessageTextFragment() const override;
32 GURL GetOrigin() const override; 30 GURL GetOrigin() const override;
33 void PermissionGranted() override; 31 void PermissionGranted() override;
34 void PermissionDenied() override; 32 void PermissionDenied() override;
35 void Cancelled() override; 33 void Cancelled() override;
36 void RequestFinished() override; 34 void RequestFinished() override;
37 PermissionBubbleType GetPermissionBubbleType() const override; 35 PermissionRequestType GetPermissionRequestType() const override;
38 36
39 ProtocolHandlerRegistry* registry_; 37 ProtocolHandlerRegistry* registry_;
40 ProtocolHandler handler_; 38 ProtocolHandler handler_;
41 GURL origin_; 39 GURL origin_;
42 40
43 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionRequest); 41 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionRequest);
44 }; 42 };
45 43
46 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_R EQUEST_H_ 44 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_R EQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698