Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |