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

Side by Side Diff: chrome/browser/ui/website_settings/mock_permission_bubble_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
(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_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
7
8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
10 #include "url/gurl.h"
11
12 class MockPermissionBubbleRequest : public PermissionBubbleRequest {
13 public:
14 MockPermissionBubbleRequest();
15 explicit MockPermissionBubbleRequest(const std::string& text);
16 MockPermissionBubbleRequest(const std::string& text,
17 PermissionBubbleType bubble_type);
18 MockPermissionBubbleRequest(const std::string& text, const GURL& url);
19 MockPermissionBubbleRequest(const std::string& text,
20 const std::string& accept_label,
21 const std::string& deny_label);
22
23 ~MockPermissionBubbleRequest() override;
24
25 int GetIconId() const override;
26 base::string16 GetMessageTextFragment() const override;
27 GURL GetOrigin() const override;
28
29 void PermissionGranted() override;
30 void PermissionDenied() override;
31 void Cancelled() override;
32 void RequestFinished() override;
33 PermissionBubbleType GetPermissionBubbleType() const override;
34
35 bool granted();
36 bool cancelled();
37 bool finished();
38
39 private:
40 MockPermissionBubbleRequest(const std::string& text,
41 const std::string& accept_label,
42 const std::string& deny_label,
43 const GURL& url,
44 PermissionBubbleType bubble_type);
45 bool granted_;
46 bool cancelled_;
47 bool finished_;
48 PermissionBubbleType bubble_type_;
49
50 base::string16 text_;
51 base::string16 accept_label_;
52 base::string16 deny_label_;
53 GURL origin_;
54 };
55
56 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698