hush | 284add6 | 2016-06-17 20:47:33 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ |
| 6 | #define ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ |
| 7 | |
| 8 | namespace android_webview { |
| 9 | |
| 10 | struct CompositorID { |
| 11 | CompositorID(); |
| 12 | CompositorID(int process_id, int routing_id); |
| 13 | CompositorID(const CompositorID& other); |
| 14 | CompositorID& operator=(const CompositorID& other); |
| 15 | bool Equals(const CompositorID& other) const; |
| 16 | |
| 17 | int process_id; |
| 18 | int routing_id; |
| 19 | }; |
| 20 | |
| 21 | struct CompositorIDComparator { |
| 22 | bool operator()(const CompositorID& a, const CompositorID& b) const; |
| 23 | }; |
| 24 | |
| 25 | } // namespace android_webview |
| 26 | |
| 27 | #endif // ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ |