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

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

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs Created 6 years, 2 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 "chrome/browser/ui/website_settings/permission_bubble_request.h" 8 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
9 #include "chrome/common/custom_handlers/protocol_handler.h" 9 #include "chrome/common/custom_handlers/protocol_handler.h"
10 10
11 class ProtocolHandlerRegistry; 11 class ProtocolHandlerRegistry;
12 12
13 // This class provides display data for a permission bubble request, shown when 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 14 // a page wants to register a protocol handler and was triggered by a user
15 // action. 15 // action.
16 class RegisterProtocolHandlerPermissionRequest 16 class RegisterProtocolHandlerPermissionRequest
17 : public PermissionBubbleRequest { 17 : public PermissionBubbleRequest {
18 public: 18 public:
19 RegisterProtocolHandlerPermissionRequest( 19 RegisterProtocolHandlerPermissionRequest(
20 ProtocolHandlerRegistry* registry, 20 ProtocolHandlerRegistry* registry,
21 const ProtocolHandler& handler, 21 const ProtocolHandler& handler,
22 GURL url, 22 GURL url,
23 bool user_gesture); 23 bool user_gesture);
24 virtual ~RegisterProtocolHandlerPermissionRequest(); 24 virtual ~RegisterProtocolHandlerPermissionRequest();
25 25
26 // PermissionBubbleRequest: 26 // PermissionBubbleRequest:
27 virtual int GetIconID() const OVERRIDE; 27 virtual int GetIconID() const override;
28 virtual base::string16 GetMessageText() const OVERRIDE; 28 virtual base::string16 GetMessageText() const override;
29 virtual base::string16 GetMessageTextFragment() const OVERRIDE; 29 virtual base::string16 GetMessageTextFragment() const override;
30 virtual bool HasUserGesture() const OVERRIDE; 30 virtual bool HasUserGesture() const override;
31 virtual GURL GetRequestingHostname() const OVERRIDE; 31 virtual GURL GetRequestingHostname() const override;
32 virtual void PermissionGranted() OVERRIDE; 32 virtual void PermissionGranted() override;
33 virtual void PermissionDenied() OVERRIDE; 33 virtual void PermissionDenied() override;
34 virtual void Cancelled() OVERRIDE; 34 virtual void Cancelled() override;
35 virtual void RequestFinished() OVERRIDE; 35 virtual void RequestFinished() override;
36 36
37 private: 37 private:
38 ProtocolHandlerRegistry* registry_; 38 ProtocolHandlerRegistry* registry_;
39 ProtocolHandler handler_; 39 ProtocolHandler handler_;
40 GURL url_; 40 GURL url_;
41 bool user_gesture_; 41 bool user_gesture_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionRequest); 43 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionRequest);
44 }; 44 };
45 45
46 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_R EQUEST_H_ 46 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_R EQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698