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

Side by Side Diff: tools/OmahaCompatibility/HttpServer/update_check_handler.h

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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2008-2009 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 // ========================================================================
15
16 #ifndef OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_UPDATE_CHECK_HANDLER_H_
17 #define OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_UPDATE_CHECK_HANDLER_H_
18
19 #include <windows.h>
20 #include <vector>
21 #include <atlstr.h>
22 #include "omaha/goopdate/request.h"
23 #include "omaha/tools/omahacompatibility/common/config.h"
24 #include "omaha/tools/omahacompatibility/common/ping_observer.h"
25 #include "omaha/tools/omahacompatibility/httpserver/request.h"
26 #include "omaha/tools/omahacompatibility/httpserver/response.h"
27 #include "omaha/tools/omahacompatibility/httpserver/url_handler.h"
28 #include "omaha/tools/omahacompatibility/httpserver/xml_parser.h"
29
30 namespace omaha {
31
32 // Handles the update check requests.
33 // Initially the configuration information that is used to respond
34 // to the requests is simple and only contains a few fields: guid and version.
35 //
36 // Future: Implement reading the server ascii protocol buffers, and use
37 // that as the configuration information.
38 class UpdateCheckHandler : public UrlHandler {
39 public:
40 UpdateCheckHandler(const CString& url_path, PingObserver* observer);
41 virtual ~UpdateCheckHandler() {}
42
43 HRESULT AddAppVersionResponse(const ConfigResponse& response);
44 virtual HRESULT HandleRequest(const HttpRequest& request,
45 HttpResponse* response);
46 private:
47 // Returns the response structure that matches the guid and version
48 // specified.
49 HRESULT FindResponse(GUID guid,
50 const CString& version,
51 const CString& ap,
52 ConfigResponse* response);
53 HRESULT BuildResponse(const AppRequestDataVector& request,
54 ServerResponses* responses);
55 std::vector<ConfigResponse> config_responses_;
56 PingObserver* ping_observer_;
57 };
58
59 } // namespace omaha
60
61 #endif // OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_UPDATE_CHECK_HANDLER_H_
OLDNEW
« no previous file with comments | « tools/OmahaCompatibility/HttpServer/response.h ('k') | tools/OmahaCompatibility/HttpServer/update_check_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698