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

Unified Diff: common/update_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/update3_utils.cc ('k') | common/update_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/update_request.h
diff --git a/common/update_request.h b/common/update_request.h
deleted file mode 100644
index 4ab15353af20ed13705831c094879825f1f00c11..0000000000000000000000000000000000000000
--- a/common/update_request.h
+++ /dev/null
@@ -1,69 +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.
-// ========================================================================
-//
-// UpdateRequest allows the caller to build an update request object and
-// serialize it as a string.
-
-#ifndef OMAHA_COMMON_UPDATE_REQUEST_H_
-#define OMAHA_COMMON_UPDATE_REQUEST_H_
-
-#include <windows.h>
-#include "base/basictypes.h"
-#include "omaha/common/protocol_definition.h"
-
-namespace omaha {
-
-namespace xml {
-
-class UpdateRequest {
- public:
- ~UpdateRequest();
-
- // Creates an instance of the class. Caller takes ownership.
- static UpdateRequest* Create(bool is_machine,
- const CString& session_id,
- const CString& install_source,
- const CString& origin_url);
-
- // Adds an 'app' element to the request.
- void AddApp(const request::App& app);
-
- // Returns true if the requests does not contain applications.
- bool IsEmpty() const;
-
- // Serializes the request into a buffer.
- HRESULT Serialize(CString* buffer) const;
-
- // Returns true if one of the applications in the request carries a
- // trusted tester token.
- bool has_tt_token() const;
-
- const request::Request& request() const { return request_; }
-
- private:
- friend class XmlParserTest;
-
- UpdateRequest();
-
- request::Request request_;
-
- DISALLOW_COPY_AND_ASSIGN(UpdateRequest);
-};
-
-} // namespace xml
-
-} // namespace omaha
-
-#endif // OMAHA_COMMON_UPDATE_REQUEST_H_
« no previous file with comments | « common/update3_utils.cc ('k') | common/update_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698