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

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

Issue 492008: AU: Try delta updates first, then full updates (Closed)
Patch Set: use mkstemp 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/update_engine/SConstruct ('k') | src/platform/update_engine/action_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/action.h
diff --git a/src/platform/update_engine/action.h b/src/platform/update_engine/action.h
index af6deee0b0c14ea6e52941cc0b409de18ce1bba4..b45100a80e099421eced742bbc0beb95eeecda4b 100644
--- a/src/platform/update_engine/action.h
+++ b/src/platform/update_engine/action.h
@@ -62,8 +62,6 @@
// consulting ActionTraits<T>::InputObjectType (and OutputObjectType).
// This is why the ActionTraits classes are needed.
-using std::tr1::shared_ptr;
-
namespace chromeos_update_engine {
// It is handy to have a non-templated base class of all Actions.
@@ -111,7 +109,7 @@ class AbstractAction {
// std::type_info for this?
// Type() returns a string of the Action type. I.e., for DownloadAction,
// Type() would return "DownloadAction".
- virtual string Type() const = 0;
+ virtual std::string Type() const = 0;
protected:
// A weak pointer to the processor that owns this Action.
@@ -138,7 +136,7 @@ class Action : public AbstractAction {
void set_in_pipe(
// this type is a fancy way of saying: a shared_ptr to an
// ActionPipe<InputObjectType>.
- const shared_ptr<ActionPipe<
+ const std::tr1::shared_ptr<ActionPipe<
typename ActionTraits<SubClass>::InputObjectType> >&
in_pipe) {
in_pipe_ = in_pipe;
@@ -151,7 +149,7 @@ class Action : public AbstractAction {
void set_out_pipe(
// this type is a fancy way of saying: a shared_ptr to an
// ActionPipe<OutputObjectType>.
- const shared_ptr<ActionPipe<
+ const std::tr1::shared_ptr<ActionPipe<
typename ActionTraits<SubClass>::OutputObjectType> >&
out_pipe) {
out_pipe_ = out_pipe;
@@ -194,9 +192,11 @@ protected:
// point to when the last such shared_ptr object dies. We consider the
// Actions on either end of a pipe to "own" the pipe. When the last Action
// of the two dies, the ActionPipe will die, too.
- shared_ptr<ActionPipe<typename ActionTraits<SubClass>::InputObjectType> >
+ std::tr1::shared_ptr<
+ ActionPipe<typename ActionTraits<SubClass>::InputObjectType> >
in_pipe_;
- shared_ptr<ActionPipe<typename ActionTraits<SubClass>::OutputObjectType> >
+ std::tr1::shared_ptr<
+ ActionPipe<typename ActionTraits<SubClass>::OutputObjectType> >
out_pipe_;
};
« no previous file with comments | « src/platform/update_engine/SConstruct ('k') | src/platform/update_engine/action_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698