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

Side by Side Diff: chrome/browser/ui/website_settings/mock_permission_bubble_request.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" 9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 class MockPermissionBubbleRequest : public PermissionBubbleRequest { 12 class MockPermissionBubbleRequest : public PermissionBubbleRequest {
13 public: 13 public:
14 MockPermissionBubbleRequest(); 14 MockPermissionBubbleRequest();
15 explicit MockPermissionBubbleRequest(const std::string& text); 15 explicit MockPermissionBubbleRequest(const std::string& text);
16 explicit MockPermissionBubbleRequest(const std::string& text, 16 explicit MockPermissionBubbleRequest(const std::string& text,
17 const GURL& url); 17 const GURL& url);
18 explicit MockPermissionBubbleRequest(const std::string& text, 18 explicit MockPermissionBubbleRequest(const std::string& text,
19 const std::string& accept_label, 19 const std::string& accept_label,
20 const std::string& deny_label); 20 const std::string& deny_label);
21 virtual ~MockPermissionBubbleRequest(); 21 ~MockPermissionBubbleRequest() override;
22 22
23 virtual int GetIconID() const override; 23 int GetIconID() const override;
24 virtual base::string16 GetMessageText() const override; 24 base::string16 GetMessageText() const override;
25 virtual base::string16 GetMessageTextFragment() const override; 25 base::string16 GetMessageTextFragment() const override;
26 virtual bool HasUserGesture() const override; 26 bool HasUserGesture() const override;
27 virtual GURL GetRequestingHostname() const override; 27 GURL GetRequestingHostname() const override;
28 28
29 virtual void PermissionGranted() override; 29 void PermissionGranted() override;
30 virtual void PermissionDenied() override; 30 void PermissionDenied() override;
31 virtual void Cancelled() override; 31 void Cancelled() override;
32 virtual void RequestFinished() override; 32 void RequestFinished() override;
33 33
34 bool granted(); 34 bool granted();
35 bool cancelled(); 35 bool cancelled();
36 bool finished(); 36 bool finished();
37 37
38 void SetHasUserGesture(); 38 void SetHasUserGesture();
39 39
40 private: 40 private:
41 bool granted_; 41 bool granted_;
42 bool cancelled_; 42 bool cancelled_;
43 bool finished_; 43 bool finished_;
44 bool user_gesture_; 44 bool user_gesture_;
45 45
46 base::string16 text_; 46 base::string16 text_;
47 base::string16 accept_label_; 47 base::string16 accept_label_;
48 base::string16 deny_label_; 48 base::string16 deny_label_;
49 GURL hostname_; 49 GURL hostname_;
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_ 52 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698