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

Unified Diff: src/platform/update_engine/graph_types.h

Issue 891002: AU: Delta Diff Generator (Closed)
Patch Set: fixes for review Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/update_engine/generate_delta_main.cc ('k') | src/platform/update_engine/graph_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/graph_types.h
diff --git a/src/platform/update_engine/graph_types.h b/src/platform/update_engine/graph_types.h
index afb7f6434e0f9e0062b77d8a03332cc280ca2a86..109616abc6f747119434bad80e19a926e9009bed 100644
--- a/src/platform/update_engine/graph_types.h
+++ b/src/platform/update_engine/graph_types.h
@@ -7,6 +7,7 @@
#include <map>
#include <set>
+#include <string>
#include <utility>
#include <vector>
#include "base/basictypes.h"
@@ -22,7 +23,7 @@ struct EdgeProperties {
};
struct Vertex {
- Vertex() : index(-1), lowlink(-1), op(NULL) {}
+ Vertex() : index(-1), lowlink(-1) {}
typedef std::map<std::vector<Vertex>::size_type, EdgeProperties> EdgeMap;
EdgeMap out_edges;
@@ -38,7 +39,8 @@ struct Vertex {
std::vector<Vertex>::size_type lowlink;
// Other Vertex properties:
- DeltaArchiveManifest_InstallOperation* op;
+ DeltaArchiveManifest_InstallOperation op;
+ std::string file_name;
typedef std::vector<Vertex>::size_type Index;
static const Vertex::Index kInvalidIndex = -1;
@@ -48,6 +50,8 @@ typedef std::vector<Vertex> Graph;
typedef std::pair<Vertex::Index, Vertex::Index> Edge;
+const uint64 kSparseHole = kuint64max;
+
} // namespace chromeos_update_engine
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_GRAPH_TYPES_H__
« no previous file with comments | « src/platform/update_engine/generate_delta_main.cc ('k') | src/platform/update_engine/graph_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698