| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_ | 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_PERMISSION_REQUEST_ID_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_ | 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_PERMISSION_REQUEST_ID_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| 11 | 11 |
| 12 // Uniquely identifies a particular permission request. | 12 // Uniquely identifies a particular permission request. |
| 13 class PermissionRequestID { | 13 class PermissionRequestID { |
| 14 public: | 14 public: |
| 15 PermissionRequestID(int render_process_id, | 15 PermissionRequestID(int render_process_id, |
| 16 int render_view_id, | 16 int render_view_id, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 int render_view_id_; | 32 int render_view_id_; |
| 33 // Id unique to this instance. | 33 // Id unique to this instance. |
| 34 int bridge_id_; | 34 int bridge_id_; |
| 35 // Needed for permission checks that are based on origin. | 35 // Needed for permission checks that are based on origin. |
| 36 // If you don't use origin to check permission request, pass an empty GURL. | 36 // If you don't use origin to check permission request, pass an empty GURL. |
| 37 GURL origin_; | 37 GURL origin_; |
| 38 | 38 |
| 39 // Purposefully do not disable copying, as this is stored in STL containers. | 39 // Purposefully do not disable copying, as this is stored in STL containers. |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_ | 42 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_PERMISSION_REQUEST_ID_H_ |
| OLD | NEW |