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

Unified Diff: cc/surfaces/local_frame_id.h

Issue 2537343004: Add SurfaceReference class. (Closed)
Patch Set: Fixes. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/DEPS ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/local_frame_id.h
diff --git a/cc/surfaces/local_frame_id.h b/cc/surfaces/local_frame_id.h
index ea0ec038dfc807e1871465122494879179322a11..7773b9646cbcf85c6cef9d6eaec0b7cf8ef628d1 100644
--- a/cc/surfaces/local_frame_id.h
+++ b/cc/surfaces/local_frame_id.h
@@ -13,8 +13,12 @@
#include "base/hash.h"
#include "base/unguessable_token.h"
+#include "mojo/public/cpp/bindings/struct_traits.h"
namespace cc {
+namespace mojom {
+class LocalFrameIdDataView;
+}
class LocalFrameId {
public:
@@ -53,6 +57,8 @@ class LocalFrameId {
std::string ToString() const;
private:
+ friend struct mojo::StructTraits<mojom::LocalFrameIdDataView, LocalFrameId>;
+
uint32_t local_id_;
base::UnguessableToken nonce_;
};
« no previous file with comments | « cc/surfaces/DEPS ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698