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

Side by Side Diff: action_pipe.h

Issue 3170010: [update_engine] Update to use not-hideously-old logging API from chrome (Closed) Base URL: http://src.chromium.org/git/update_engine.git
Patch Set: Created 10 years, 4 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 unified diff | Download patch
« no previous file with comments | « action.h ('k') | cycle_breaker_unittest.cc » ('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 CHROMEOS_PLATFORM_UPDATE_ENGINE_PIPE_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_PIPE_H__
6 #define CHROMEOS_PLATFORM_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/basictypes.h" 13 #include "base/basictypes.h"
14 #include "chromeos/obsolete_logging.h" 14 #include "base/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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // TODO(adlr): find something like this that the compiler accepts: 80 // TODO(adlr): find something like this that the compiler accepts:
81 // COMPILE_ASSERT(typeof(typename FromAction::OutputObjectType) == 81 // COMPILE_ASSERT(typeof(typename FromAction::OutputObjectType) ==
82 // typeof(typename ToAction::InputObjectType), 82 // typeof(typename ToAction::InputObjectType),
83 // FromAction_OutputObjectType_doesnt_match_ToAction_InputObjectType); 83 // FromAction_OutputObjectType_doesnt_match_ToAction_InputObjectType);
84 ActionPipe<typename FromAction::OutputObjectType>::Bond(from, to); 84 ActionPipe<typename FromAction::OutputObjectType>::Bond(from, to);
85 } 85 }
86 86
87 } // namespace chromeos_update_engine 87 } // namespace chromeos_update_engine
88 88
89 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PIPE_H__ 89 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PIPE_H__
OLDNEW
« no previous file with comments | « action.h ('k') | cycle_breaker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698