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

Unified Diff: net/bind_status_callback.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 | « mi_exe_stub/x86_encoder/range_encoder.cc ('k') | net/bind_status_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/bind_status_callback.h
diff --git a/net/bind_status_callback.h b/net/bind_status_callback.h
deleted file mode 100644
index 3afb72c8d285e21ca5a62e82481fd898836b6458..0000000000000000000000000000000000000000
--- a/net/bind_status_callback.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright 2007-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.
-// ========================================================================
-//
-// IBindStatusCallback interface. Support for HTTP POST.
-
-#ifndef OMAHA_NET_BIND_STATUS_CALLBACK_H__
-#define OMAHA_NET_BIND_STATUS_CALLBACK_H__
-
-#include <windows.h>
-#include <urlmon.h>
-#include <atlbase.h>
-#include <atlcom.h>
-#include <atlsafe.h>
-#include <atlstr.h>
-#include "omaha/base/scoped_any.h"
-#include "omaha/base/synchronized.h"
-
-namespace omaha {
-
-class ATL_NO_VTABLE BindStatusCallback
- : public CComObjectRootEx<CComObjectThreadModel>,
- public IBindStatusCallback,
- public IHttpNegotiate {
- public:
- HRESULT Send(BSTR url,
- BSTR post_data,
- BSTR request_headers,
- VARIANT response_headers_needed,
- VARIANT* response_headers,
- DWORD* response_code,
- BSTR* cache_filename);
-
- HRESULT Cancel();
-
- // C4505: unreferenced IUnknown local functions have been removed
- #pragma warning(disable : 4505)
- BEGIN_COM_MAP(BindStatusCallback)
- COM_INTERFACE_ENTRY(IBindStatusCallback)
- COM_INTERFACE_ENTRY(IHttpNegotiate)
- END_COM_MAP()
-
- // IBindStatusCallback methods.
- STDMETHODIMP OnStartBinding(DWORD reserved, IBinding* binding);
- STDMETHODIMP GetPriority(LONG* priority);
- STDMETHODIMP OnLowResource(DWORD reserved);
- STDMETHODIMP OnProgress(ULONG, ULONG, ULONG, LPCWSTR);
- STDMETHODIMP OnStopBinding(HRESULT, LPCWSTR);
- STDMETHODIMP GetBindInfo(DWORD* bindf_flags, BINDINFO* bind_info);
- STDMETHODIMP OnDataAvailable(DWORD, DWORD, FORMATETC*, STGMEDIUM*);
- STDMETHODIMP OnObjectAvailable(REFIID, IUnknown*);
-
- // IHttpNegotiate methods
- STDMETHODIMP BeginningTransaction(LPCWSTR url,
- LPCWSTR request_headers,
- DWORD reserved,
- LPWSTR* additional_headers);
- STDMETHODIMP OnResponse(DWORD response_code,
- LPCWSTR response_headers,
- LPCWSTR request_headers,
- LPWSTR* additional_request_headers);
-
- protected:
- BindStatusCallback();
- virtual ~BindStatusCallback() {}
-
- private:
- LLock lock_;
- BINDVERB http_verb_;
- scoped_hglobal post_data_;
- DWORD post_data_byte_count_;
- CString request_headers_;
- CComSafeArray<DWORD> response_headers_needed_;
- CComVariant response_headers_;
- DWORD response_code_;
- CComGITPtr<IBinding> binding_git_;
-};
-
-} // namespace omaha
-
-#endif // OMAHA_NET_BIND_STATUS_CALLBACK_H__
-
« no previous file with comments | « mi_exe_stub/x86_encoder/range_encoder.cc ('k') | net/bind_status_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698