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

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

Issue 2909223003: Wire up Android system permission prompts in PermissionRequestManager codepath (Closed)
Patch Set: w/o dependent 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
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_request_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_REQUEST_IMPL_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_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.h" 10 #include "chrome/browser/permissions/permission_request.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 GURL GetOrigin() const override; 42 GURL GetOrigin() const override;
43 // Remember to call RegisterActionTaken for these methods if you are 43 // Remember to call RegisterActionTaken for these methods if you are
44 // overriding them. 44 // overriding them.
45 void PermissionGranted() override; 45 void PermissionGranted() override;
46 void PermissionDenied() override; 46 void PermissionDenied() override;
47 void Cancelled() override; 47 void Cancelled() override;
48 void RequestFinished() override; 48 void RequestFinished() override;
49 bool ShouldShowPersistenceToggle() const override; 49 bool ShouldShowPersistenceToggle() const override;
50 PermissionRequestType GetPermissionRequestType() const override; 50 PermissionRequestType GetPermissionRequestType() const override;
51 PermissionRequestGestureType GetGestureType() const override; 51 PermissionRequestGestureType GetGestureType() const override;
52 ContentSettingsType GetContentSettingsType() const override;
52 53
53 GURL request_origin_; 54 GURL request_origin_;
54 ContentSettingsType content_settings_type_; 55 ContentSettingsType content_settings_type_;
55 Profile* profile_; 56 Profile* profile_;
56 bool has_gesture_; 57 bool has_gesture_;
57 58
58 // Called once a decision is made about the permission. 59 // Called once a decision is made about the permission.
59 const PermissionDecidedCallback permission_decided_callback_; 60 const PermissionDecidedCallback permission_decided_callback_;
60 61
61 // Called when the request is no longer in use so it can be deleted by the 62 // Called when the request is no longer in use so it can be deleted by the
62 // caller. 63 // caller.
63 const base::Closure delete_callback_; 64 const base::Closure delete_callback_;
64 bool is_finished_; 65 bool is_finished_;
65 bool action_taken_; 66 bool action_taken_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(PermissionRequestImpl); 68 DISALLOW_COPY_AND_ASSIGN(PermissionRequestImpl);
68 }; 69 };
69 70
70 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_ 71 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_request_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698