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

Unified Diff: goopdate/app_state_download_complete.cc

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 | « goopdate/app_state_download_complete.h ('k') | goopdate/app_state_downloading.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: goopdate/app_state_download_complete.cc
diff --git a/goopdate/app_state_download_complete.cc b/goopdate/app_state_download_complete.cc
deleted file mode 100644
index 23b12867a0ce2150cb6b3e9f5236d0b7c237b52b..0000000000000000000000000000000000000000
--- a/goopdate/app_state_download_complete.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-#include "omaha/goopdate/app_state_download_complete.h"
-#include "omaha/base/debug.h"
-#include "omaha/base/logging.h"
-#include "omaha/goopdate/app_state_ready_to_install.h"
-#include "omaha/goopdate/download_complete_ping_event.h"
-#include "omaha/goopdate/model.h"
-
-namespace omaha {
-
-namespace fsm {
-
-AppStateDownloadComplete::AppStateDownloadComplete()
- : AppState(STATE_DOWNLOAD_COMPLETE) {
-}
-
-const PingEvent* AppStateDownloadComplete::CreatePingEvent(
- App* app,
- CurrentState previous_state) const {
- ASSERT1(app);
- UNREFERENCED_PARAMETER(previous_state);
-
- const PingEvent::Types event_type(app->is_update() ?
- PingEvent::EVENT_UPDATE_DOWNLOAD_FINISH :
- PingEvent::EVENT_INSTALL_DOWNLOAD_FINISH);
-
- const HRESULT error_code = app->error_code();
- ASSERT1(SUCCEEDED(error_code));
-
- return new DownloadCompletePingEvent(event_type,
- GetCompletionResult(*app),
- error_code,
- 0,
- app->GetDownloadTimeMs(),
- app->num_bytes_downloaded(),
- app->GetPackagesTotalSize());
-}
-
-// TODO(omaha3): When extraction and differential updates are supported, this
-// method will need to be copied/moved/changed to handle branches in the flow.
-void AppStateDownloadComplete::MarkReadyToInstall(App* app) {
- CORE_LOG(L3,
- (_T("[AppStateDownloadComplete::MarkReadyToInstall][0x%p]"), app));
- ASSERT1(app);
-
- ChangeState(app, new AppStateReadyToInstall);
-}
-
-} // namespace fsm
-
-} // namespace omaha
« no previous file with comments | « goopdate/app_state_download_complete.h ('k') | goopdate/app_state_downloading.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698