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

Unified Diff: tools/OmahaCompatibility/HttpServer/download_handler.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
Index: tools/OmahaCompatibility/HttpServer/download_handler.cc
diff --git a/tools/OmahaCompatibility/HttpServer/download_handler.cc b/tools/OmahaCompatibility/HttpServer/download_handler.cc
deleted file mode 100644
index eab5eb5b52c76e80a9de1a9338d888dce5604df0..0000000000000000000000000000000000000000
--- a/tools/OmahaCompatibility/HttpServer/download_handler.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2008-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/tools/omahacompatibility/httpserver/download_handler.h"
-#include "omaha/common/debug.h"
-#include "omaha/common/logging.h"
-#include "omaha/common/path.h"
-
-namespace omaha {
-
-HRESULT DownloadHandler::HandleRequest(const HttpRequest& request,
- HttpResponse* response) {
- CORE_LOG(L1, (_T("[DownloadHandler::HandleRequest]")));
- ASSERT1(response);
-
- for (size_t i = 0; i < responses_.size(); ++i) {
- CString requested_file = GetFileFromPath(request.path());
- if (GetFileFromPath(responses_[i].local_file_name) == requested_file) {
- // We know about the file that was asked for.
- response->set_size(responses_[i].size);
- response->set_file_name(responses_[i].local_file_name);
- return S_OK;
- }
- }
-
- return S_OK;
-}
-
-HRESULT DownloadHandler::AddDownloadFile(const ConfigResponse& response) {
- CORE_LOG(L1, (_T("[DownloadHandler::AddDownloadFile]")));
- responses_.push_back(response);
- return S_OK;
-}
-
-} // namespace omaha
« no previous file with comments | « tools/OmahaCompatibility/HttpServer/download_handler.h ('k') | tools/OmahaCompatibility/HttpServer/http_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698