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

Side by Side Diff: chrome/browser/permissions/permission_bubble_request_impl.h

Issue 1903103002: Remove some dead code for permission bubbles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase error Created 4 years, 8 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_PERMISSIONS_PERMISSION_BUBBLE_REQUEST_IMPL_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_BUBBLE_REQUEST_IMPL_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_BUBBLE_REQUEST_IMPL_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_BUBBLE_REQUEST_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/permissions/permission_request_id.h" 10 #include "chrome/browser/permissions/permission_request_id.h"
(...skipping 19 matching lines...) Expand all
30 30
31 ~PermissionBubbleRequestImpl() override; 31 ~PermissionBubbleRequestImpl() override;
32 32
33 protected: 33 protected:
34 void RegisterActionTaken() { action_taken_ = true; } 34 void RegisterActionTaken() { action_taken_ = true; }
35 35
36 private: 36 private:
37 // PermissionBubbleRequest: 37 // PermissionBubbleRequest:
38 gfx::VectorIconId GetVectorIconId() const override; 38 gfx::VectorIconId GetVectorIconId() const override;
39 int GetIconId() const override; 39 int GetIconId() const override;
40 base::string16 GetMessageText() const override;
41 base::string16 GetMessageTextFragment() const override; 40 base::string16 GetMessageTextFragment() const override;
42 GURL GetOrigin() const override; 41 GURL GetOrigin() const override;
43 // Remember to call RegisterActionTaken for these methods if you are 42 // Remember to call RegisterActionTaken for these methods if you are
44 // overriding them. 43 // overriding them.
45 void PermissionGranted() override; 44 void PermissionGranted() override;
46 void PermissionDenied() override; 45 void PermissionDenied() override;
47 void Cancelled() override; 46 void Cancelled() override;
48 void RequestFinished() override; 47 void RequestFinished() override;
49 PermissionBubbleType GetPermissionBubbleType() const override; 48 PermissionBubbleType GetPermissionBubbleType() const override;
50 49
51 GURL request_origin_; 50 GURL request_origin_;
52 content::PermissionType permission_type_; 51 content::PermissionType permission_type_;
53 52
54 // Called once a decision is made about the permission. 53 // Called once a decision is made about the permission.
55 const PermissionDecidedCallback permission_decided_callback_; 54 const PermissionDecidedCallback permission_decided_callback_;
56 55
57 // Called when the bubble is no longer in use so it can be deleted by 56 // Called when the bubble is no longer in use so it can be deleted by
58 // the caller. 57 // the caller.
59 const base::Closure delete_callback_; 58 const base::Closure delete_callback_;
60 bool is_finished_; 59 bool is_finished_;
61 bool action_taken_; 60 bool action_taken_;
62 61
63 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleRequestImpl); 62 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleRequestImpl);
64 }; 63 };
65 64
66 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_BUBBLE_REQUEST_IMPL_H_ 65 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_BUBBLE_REQUEST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698