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

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

Issue 2675483002: Replace PermissionType in chrome/ with ContentSettingsType (Closed)
Patch Set: rebase Created 3 years, 10 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_REQUEST_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "components/content_settings/core/common/content_settings_types.h" 10 #include "components/content_settings/core/common/content_settings_types.h"
11 #include "content/public/browser/permission_type.h"
12 #include "url/gurl.h" 11 #include "url/gurl.h"
13 12
14 namespace gfx { 13 namespace gfx {
15 enum class VectorIconId; 14 enum class VectorIconId;
16 } 15 }
17 16
18 // Used for UMA to record the types of permission prompts shown. 17 // Used for UMA to record the types of permission prompts shown.
19 // This corresponds to the PermissionRequestType enum in 18 // This corresponds to the PermissionRequestType enum in
20 // src/tools/metrics/histograms.xml. The usual rules of updating UMA values 19 // src/tools/metrics/histograms.xml. The usual rules of updating UMA values
21 // applies to this enum: 20 // applies to this enum:
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 bool persist() const { return persist_; } 121 bool persist() const { return persist_; }
123 122
124 private: 123 private:
125 // Whether or not the response for this prompt should be persisted. 124 // Whether or not the response for this prompt should be persisted.
126 bool persist_; 125 bool persist_;
127 126
128 DISALLOW_COPY_AND_ASSIGN(PermissionRequest); 127 DISALLOW_COPY_AND_ASSIGN(PermissionRequest);
129 }; 128 };
130 129
131 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ 130 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698