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

Side by Side Diff: src/platform/update_engine/action_pipe.h

Issue 466036: AU: Beginnings of delta support (Closed)
Patch Set: Created 11 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 unified diff | Download patch
« no previous file with comments | « src/platform/update_engine/action.h ('k') | src/platform/update_engine/action_processor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 UPDATE_ENGINE_PIPE_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_PIPE_H__
6 #define UPDATE_ENGINE_PIPE_H__ 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_PIPE_H__
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <iostream> 9 #include <iostream>
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 #include <tr1/memory> 12 #include <tr1/memory>
13 #include <base/logging.h>
14 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "chromeos/obsolete_logging.h"
15 15
16 // The structure of these classes (Action, ActionPipe, ActionProcessor, etc.) 16 // The structure of these classes (Action, ActionPipe, ActionProcessor, etc.)
17 // is based on the KSAction* classes from the Google Update Engine code at 17 // is based on the KSAction* classes from the Google Update Engine code at
18 // http://code.google.com/p/update-engine/ . The author of this file sends 18 // http://code.google.com/p/update-engine/ . The author of this file sends
19 // a big thanks to that team for their high quality design, implementation, 19 // a big thanks to that team for their high quality design, implementation,
20 // and documentation. 20 // and documentation.
21 21
22 // This class serves as a temporary holding area for an object passed out 22 // This class serves as a temporary holding area for an object passed out
23 // from one Action and into another Action. It's templated so that it may 23 // from one Action and into another Action. It's templated so that it may
24 // contain any type of object that an Action outputs/inputs. Actions 24 // contain any type of object that an Action outputs/inputs. Actions
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void BondActions(FromAction* from, ToAction* to) { 84 void BondActions(FromAction* from, ToAction* to) {
85 // TODO(adlr): find something like this that the compiler accepts: 85 // TODO(adlr): find something like this that the compiler accepts:
86 // COMPILE_ASSERT(typeof(typename FromAction::OutputObjectType) == 86 // COMPILE_ASSERT(typeof(typename FromAction::OutputObjectType) ==
87 // typeof(typename ToAction::InputObjectType), 87 // typeof(typename ToAction::InputObjectType),
88 // FromAction_OutputObjectType_doesnt_match_ToAction_InputObjectType); 88 // FromAction_OutputObjectType_doesnt_match_ToAction_InputObjectType);
89 ActionPipe<typename FromAction::OutputObjectType>::Bond(from, to); 89 ActionPipe<typename FromAction::OutputObjectType>::Bond(from, to);
90 } 90 }
91 91
92 } // namespace chromeos_update_engine 92 } // namespace chromeos_update_engine
93 93
94 #endif // UPDATE_ENGINE_PIPE_H__ 94 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PIPE_H__
OLDNEW
« no previous file with comments | « src/platform/update_engine/action.h ('k') | src/platform/update_engine/action_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698