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

Side by Side Diff: chrome/browser/content_settings/permission_infobar_delegate.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_CONTENT_SETTINGS_PERMISSION_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_INFOBAR_DELEGATE_H_
7 7
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "components/content_settings/core/common/content_settings_types.h" 9 #include "components/content_settings/core/common/content_settings_types.h"
10 #include "components/content_settings/core/common/permission_request_id.h" 10 #include "components/content_settings/core/common/permission_request_id.h"
(...skipping 12 matching lines...) Expand all
23 protected: 23 protected:
24 PermissionInfobarDelegate(PermissionQueueController* controller, 24 PermissionInfobarDelegate(PermissionQueueController* controller,
25 const PermissionRequestID& id, 25 const PermissionRequestID& id,
26 const GURL& requesting_origin, 26 const GURL& requesting_origin,
27 ContentSettingsType type); 27 ContentSettingsType type);
28 virtual ~PermissionInfobarDelegate(); 28 virtual ~PermissionInfobarDelegate();
29 29
30 // ConfirmInfoBarDelegate: 30 // ConfirmInfoBarDelegate:
31 virtual base::string16 GetMessageText() const = 0; 31 virtual base::string16 GetMessageText() const = 0;
32 32
33 virtual infobars::InfoBarDelegate::Type GetInfoBarType() const OVERRIDE; 33 virtual infobars::InfoBarDelegate::Type GetInfoBarType() const override;
34 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 34 virtual base::string16 GetButtonLabel(InfoBarButton button) const override;
35 35
36 // Remember to call RegisterActionTaken for these methods if you are 36 // Remember to call RegisterActionTaken for these methods if you are
37 // overriding them. 37 // overriding them.
38 virtual void InfoBarDismissed() OVERRIDE; 38 virtual void InfoBarDismissed() override;
39 virtual bool Accept() OVERRIDE; 39 virtual bool Accept() override;
40 virtual bool Cancel() OVERRIDE; 40 virtual bool Cancel() override;
41 41
42 private: 42 private:
43 void SetPermission(bool update_content_setting, bool allowed); 43 void SetPermission(bool update_content_setting, bool allowed);
44 44
45 PermissionQueueController* controller_; // not owned by us 45 PermissionQueueController* controller_; // not owned by us
46 const PermissionRequestID id_; 46 const PermissionRequestID id_;
47 GURL requesting_origin_; 47 GURL requesting_origin_;
48 bool action_taken_; 48 bool action_taken_;
49 ContentSettingsType type_; 49 ContentSettingsType type_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(PermissionInfobarDelegate); 51 DISALLOW_COPY_AND_ASSIGN(PermissionInfobarDelegate);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_INFOBAR_DELEGATE_H_ 54 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698