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

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

Issue 2919323002: Support "learn more" link for EME in PermissionRequestManager code-path on Android (Closed)
Patch Set: address comments Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PROMPT_ANDROID_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_ANDROID_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_ANDROID_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_ANDROID_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "chrome/browser/ui/permission_bubble/permission_prompt.h" 11 #include "chrome/browser/ui/permission_bubble/permission_prompt.h"
12 #include "components/content_settings/core/common/content_settings_types.h" 12 #include "components/content_settings/core/common/content_settings_types.h"
13 #include "url/gurl.h"
13 14
14 namespace content { 15 namespace content {
15 class WebContents; 16 class WebContents;
16 } 17 }
17 18
18 class PermissionPromptAndroid : public PermissionPrompt { 19 class PermissionPromptAndroid : public PermissionPrompt {
19 public: 20 public:
20 explicit PermissionPromptAndroid(content::WebContents* web_contents); 21 explicit PermissionPromptAndroid(content::WebContents* web_contents);
21 ~PermissionPromptAndroid() override; 22 ~PermissionPromptAndroid() override;
22 23
(...skipping 12 matching lines...) Expand all
35 void Accept(); 36 void Accept();
36 void Deny(); 37 void Deny();
37 38
38 size_t PermissionCount() const; 39 size_t PermissionCount() const;
39 bool ShouldShowPersistenceToggle() const; 40 bool ShouldShowPersistenceToggle() const;
40 ContentSettingsType GetContentSettingType(size_t position) const; 41 ContentSettingsType GetContentSettingType(size_t position) const;
41 int GetIconIdForPermission(size_t position) const; 42 int GetIconIdForPermission(size_t position) const;
42 base::string16 GetMessageText(size_t position) const; 43 base::string16 GetMessageText(size_t position) const;
43 base::string16 GetMessageTextFragment(size_t position) const; 44 base::string16 GetMessageTextFragment(size_t position) const;
44 45
46 base::string16 GetLinkText() const;
47 GURL GetLinkURL() const;
48
45 private: 49 private:
46 // PermissionPromptAndroid is owned by PermissionRequestManager, so it should 50 // PermissionPromptAndroid is owned by PermissionRequestManager, so it should
47 // be safe to hold a raw WebContents pointer here because this class is 51 // be safe to hold a raw WebContents pointer here because this class is
48 // destroyed before the WebContents. 52 // destroyed before the WebContents.
49 content::WebContents* web_contents_; 53 content::WebContents* web_contents_;
50 // |delegate_| is the PermissionRequestManager, which owns this object. 54 // |delegate_| is the PermissionRequestManager, which owns this object.
51 Delegate* delegate_; 55 Delegate* delegate_;
52 56
53 DISALLOW_COPY_AND_ASSIGN(PermissionPromptAndroid); 57 DISALLOW_COPY_AND_ASSIGN(PermissionPromptAndroid);
54 }; 58 };
55 59
56 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_ANDROID_H_ 60 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_dialog_delegate.cc ('k') | chrome/browser/permissions/permission_prompt_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698