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

Side by Side Diff: tools/OmahaCompatibility/HttpServer/Request.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_REQUEST_H_
17 #define OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_REQUEST_H_
18
19 #include <http.h>
20 #include <winhttp.h>
21
22 namespace omaha {
23
24 // Represents the HttpRequest received by the server.
25 class HttpRequest {
26 public:
27 HTTP_VERB http_verb() const { return verb_; }
28 void set_http_verb(HTTP_VERB verb) { verb_ = verb; }
29
30 CString path() const { return path_; }
31 void set_path(const CString& path) { path_ = path; }
32
33 CString content() const { return content_; }
34 void set_content(const CString& content) { content_ = content; }
35
36 HTTP_REQUEST http_request() const { return http_request_; }
37 void set_http_request(const HTTP_REQUEST& request) {
38 http_request_ = request;
39 }
40
41 CString query_str() const { return query_str_; }
42 void set_query_str(const CString& query_str) {
43 query_str_ = query_str;
44 }
45
46 private:
47 HTTP_REQUEST http_request_;
48 HTTP_VERB verb_;
49 CString path_;
50 CString content_;
51 CString query_str_;
52 };
53
54 } // namespace omaha
55
56 #endif // OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_REQUEST_H_
OLDNEW
« no previous file with comments | « tools/CrashProcess/crash_process.cc ('k') | tools/OmahaCompatibility/HttpServer/download_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698