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

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

Issue 1689513002: [Abandoned] rename PermissionBubbleRequest to PermissionRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-request-manager-rename
Patch Set: browser_tests compiles 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_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 enum class VectorIconId; 12 enum class VectorIconId;
13 } 13 }
14 14
15 // Used for UMA to record the types of permission prompts shown. 15 // Used for UMA to record the types of permission prompts shown.
16 // This corresponds to the PermissionBubbleType enum in 16 // This corresponds to the PermissionBubbleType enum in
(...skipping 15 matching lines...) Expand all
32 }; 32 };
33 33
34 // Describes the interface a feature utilizing permission bubbles should 34 // Describes the interface a feature utilizing permission bubbles should
35 // implement. A class of this type is registered with the permission bubble 35 // implement. A class of this type is registered with the permission bubble
36 // manager to receive updates about the result of the permissions request 36 // manager to receive updates about the result of the permissions request
37 // from the bubble. It should live until it is unregistered or until 37 // from the bubble. It should live until it is unregistered or until
38 // RequestFinished is called. 38 // RequestFinished is called.
39 // Note that no particular guarantees are made about what exact UI surface 39 // Note that no particular guarantees are made about what exact UI surface
40 // is presented to the user. The delegate may be coalesced with other bubble 40 // is presented to the user. The delegate may be coalesced with other bubble
41 // requests, or depending on the situation, not shown at all. 41 // requests, or depending on the situation, not shown at all.
42 class PermissionBubbleRequest { 42 class PermissionRequest {
43 public: 43 public:
44 virtual ~PermissionBubbleRequest() {} 44 virtual ~PermissionRequest() {}
45 45
46 // Returns a vector icon id if the icon should be drawn as a vector 46 // Returns a vector icon id if the icon should be drawn as a vector
47 // resource. Otherwise, returns VECTOR_ICON_NONE. 47 // resource. Otherwise, returns VECTOR_ICON_NONE.
48 virtual gfx::VectorIconId GetVectorIconId() const; 48 virtual gfx::VectorIconId GetVectorIconId() const;
49 49
50 // The icon to use next to the message text fragment in the permission bubble. 50 // The icon to use next to the message text fragment in the permission bubble.
51 // Must be a valid icon of size 18x18. 51 // Must be a valid icon of size 18x18.
52 virtual int GetIconId() const = 0; 52 virtual int GetIconId() const = 0;
53 53
54 // Returns the full prompt text for this permission. This is the only text 54 // Returns the full prompt text for this permission. This is the only text
(...skipping 23 matching lines...) Expand all
78 78
79 // The bubble this request was associated with was answered by the user. 79 // The bubble this request was associated with was answered by the user.
80 // It is safe for the request to be deleted at this point -- it will receive 80 // It is safe for the request to be deleted at this point -- it will receive
81 // no further message from the permission bubble system. This method will 81 // no further message from the permission bubble system. This method will
82 // eventually be called on every request which is not unregistered. 82 // eventually be called on every request which is not unregistered.
83 virtual void RequestFinished() = 0; 83 virtual void RequestFinished() = 0;
84 84
85 virtual PermissionBubbleType GetPermissionBubbleType() const; 85 virtual PermissionBubbleType GetPermissionBubbleType() const;
86 }; 86 };
87 87
88 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_REQUEST_H_ 88 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_context_base.cc ('k') | chrome/browser/permissions/permission_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698