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

Side by Side Diff: content/public/browser/permission_type.h

Issue 2046293002: Implement DelegationTracker for tracking delegated permissions to RenderFrameHosts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-2-blink
Patch Set: Implement DelegationTracker for tracking delegated permissions to RenderFrameHosts Created 4 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 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 CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
6 #define CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // This enum is also used for UMA purposes, so it needs to adhere to 10 // This enum is also used for UMA purposes, so it needs to adhere to
(...skipping 10 matching lines...) Expand all
21 MIDI = 6, 21 MIDI = 6,
22 DURABLE_STORAGE = 7, 22 DURABLE_STORAGE = 7,
23 AUDIO_CAPTURE = 8, 23 AUDIO_CAPTURE = 8,
24 VIDEO_CAPTURE = 9, 24 VIDEO_CAPTURE = 9,
25 BACKGROUND_SYNC = 10, 25 BACKGROUND_SYNC = 10,
26 26
27 // Always keep this at the end. 27 // Always keep this at the end.
28 NUM, 28 NUM,
29 }; 29 };
30 30
31 struct PermissionTypeHash {
Charlie Reis 2016/06/20 21:34:21 This should stay outside content/ unless something
raymes 2016/06/22 03:48:11 Done.
32 std::size_t operator()(const content::PermissionType& type) const {
33 return static_cast<size_t>(type);
34 }
35 };
36
31 } // namespace content 37 } // namespace content
32 38
33 #endif // CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_ 39 #endif // CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698