Index: net/cup_request.h |
diff --git a/net/cup_request.h b/net/cup_request.h |
deleted file mode 100644 |
index a26f92c55ad24b51ac62c9246c5e90b21698bc88..0000000000000000000000000000000000000000 |
--- a/net/cup_request.h |
+++ /dev/null |
@@ -1,109 +0,0 @@ |
-// Copyright 2008-2010 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. |
-// ======================================================================== |
-// |
-// CupRequest provides CUP capabilities for a generic HttpRequestInterface. |
- |
-#ifndef OMAHA_NET_CUP_REQUEST_H__ |
-#define OMAHA_NET_CUP_REQUEST_H__ |
- |
-#include <windows.h> |
-#include <atlstr.h> |
-#include <vector> |
-#include "base/basictypes.h" |
-#include "omaha/net/http_request.h" |
-#include "base/scoped_ptr.h" |
- |
-namespace omaha { |
- |
-namespace detail { |
- |
-// The implementation uses the pimpl idiom or bridge design pattern to |
-// encapsulate the cup protocol implementation details from the calling code. |
-class CupRequestImpl; |
- |
-} // namespace detail |
- |
-class CupRequest : public HttpRequestInterface { |
- public: |
- // Decorates an HttpRequestInterface to provide CUP functionality. |
- // It takes ownership of the object provided as parameter. |
- explicit CupRequest(HttpRequestInterface* http_request); |
- |
- virtual ~CupRequest(); |
- |
- virtual HRESULT Close(); |
- |
- virtual HRESULT Send(); |
- |
- virtual HRESULT Cancel(); |
- |
- virtual HRESULT Pause(); |
- |
- virtual HRESULT Resume(); |
- |
- virtual std::vector<uint8> GetResponse() const; |
- |
- virtual HRESULT QueryHeadersString(uint32 info_level, |
- const TCHAR* name, |
- CString* value) const; |
- virtual CString GetResponseHeaders() const; |
- |
- virtual int GetHttpStatusCode() const; |
- |
- virtual CString ToString() const; |
- |
- virtual void set_session_handle(HINTERNET session_handle); |
- |
- virtual void set_url(const CString& url); |
- |
- virtual void set_request_buffer(const void* buffer, size_t buffer_length); |
- |
- virtual void set_proxy_configuration(const ProxyConfig& proxy_config); |
- |
- // Sets the filename to receive the response instead of the memory buffer. |
- virtual void set_filename(const CString& filename); |
- |
- virtual void set_low_priority(bool low_priority); |
- |
- virtual void set_callback(NetworkRequestCallback* callback); |
- |
- virtual void set_additional_headers(const CString& additional_headers); |
- |
- virtual void set_preserve_protocol(bool preserve_protocol); |
- |
- virtual CString user_agent() const; |
- |
- virtual void set_user_agent(const CString& user_agent); |
- |
- virtual void set_proxy_auth_config(const ProxyAuthConfig& proxy_auth_config); |
- |
- // Sets random bytes provided by the caller. This is useful for testing |
- // purposes and it is not be called by production code. |
- // Otherwise, when entropy is not provided, the implementation |
- // fills in the internal entropy buffer with cryptographically random bytes. |
- // Calling this method can result in compromising the security of the |
- // protocol, depending on the quality of entropy provided. |
- void SetEntropy(const void* data, size_t data_length); |
- |
- private: |
- |
- scoped_ptr<detail::CupRequestImpl> impl_; |
- DISALLOW_EVIL_CONSTRUCTORS(CupRequest); |
-}; |
- |
-} // namespace omaha |
- |
-#endif // OMAHA_NET_CUP_REQUEST_H__ |
- |