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

Unified Diff: src/platform/update_engine/update_check_action.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/update_engine/testrunner.cc ('k') | src/platform/update_engine/update_check_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/update_check_action.h
diff --git a/src/platform/update_engine/update_check_action.h b/src/platform/update_engine/update_check_action.h
index cf6d512311c052d72a00a6a64c04bb091c5121bb..402943b1f7a3eb3e3d718e44c9d6b341b69aee3a 100644
--- a/src/platform/update_engine/update_check_action.h
+++ b/src/platform/update_engine/update_check_action.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
-#define UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
+#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
+#define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
#include <sys/types.h>
#include <sys/stat.h>
@@ -93,8 +93,8 @@ class NoneType;
template<>
class ActionTraits<UpdateCheckAction> {
public:
- // Does not take an object for input
- typedef NoneType InputObjectType;
+ // Takes parameters on the input pipe
+ typedef UpdateCheckParams InputObjectType;
// On success, puts the output path on output
typedef UpdateCheckResponse OutputObjectType;
};
@@ -108,8 +108,7 @@ class UpdateCheckAction : public Action<UpdateCheckAction>,
// Takes ownership of the passed in HttpFetcher. Useful for testing.
// A good calling pattern is:
// UpdateCheckAction(..., new WhateverHttpFetcher);
- UpdateCheckAction(const UpdateCheckParams& params,
- HttpFetcher* http_fetcher);
+ UpdateCheckAction(HttpFetcher* http_fetcher);
virtual ~UpdateCheckAction();
typedef ActionTraits<UpdateCheckAction>::InputObjectType InputObjectType;
typedef ActionTraits<UpdateCheckAction>::OutputObjectType OutputObjectType;
@@ -117,7 +116,8 @@ class UpdateCheckAction : public Action<UpdateCheckAction>,
void TerminateProcessing();
// Debugging/logging
- std::string Type() const { return "UpdateCheckAction"; }
+ static std::string StaticType() { return "UpdateCheckAction"; }
+ std::string Type() const { return StaticType(); }
// Delegate methods (see http_fetcher.h)
virtual void ReceivedBytes(HttpFetcher *fetcher,
@@ -139,4 +139,4 @@ class UpdateCheckAction : public Action<UpdateCheckAction>,
} // namespace chromeos_update_engine
-#endif // UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
+#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
« no previous file with comments | « src/platform/update_engine/testrunner.cc ('k') | src/platform/update_engine/update_check_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698