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

Unified Diff: net/network_request.cc

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 | « net/network_request.h ('k') | net/network_request_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/network_request.cc
diff --git a/net/network_request.cc b/net/network_request.cc
deleted file mode 100644
index 7893c3886bb0c2e8482cfb2cff0aa5adfdfbc9b9..0000000000000000000000000000000000000000
--- a/net/network_request.cc
+++ /dev/null
@@ -1,134 +0,0 @@
-// Copyright 2007-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.
-// ========================================================================
-
-#include "omaha/net/network_request.h"
-#include "omaha/net/network_request_impl.h"
-
-namespace omaha {
-
-NetworkRequest::NetworkRequest(const NetworkConfig::Session& network_session) {
- impl_.reset(new detail::NetworkRequestImpl(network_session));
-}
-
-NetworkRequest::~NetworkRequest() {
-}
-
-HRESULT NetworkRequest::Close() {
- return impl_->Close();
-}
-
-void NetworkRequest::AddHttpRequest(HttpRequestInterface* http_request) {
- return impl_->AddHttpRequest(http_request);
-}
-
-HRESULT NetworkRequest::Post(const CString& url,
- const void* buffer,
- size_t length,
- std::vector<uint8>* response) {
- return impl_->Post(url, buffer, length, response);
-}
-
-HRESULT NetworkRequest::Get(const CString& url, std::vector<uint8>* response) {
- return impl_->Get(url, response);
-}
-
-HRESULT NetworkRequest::DownloadFile(const CString& url,
- const CString& filename) {
- return impl_->DownloadFile(url, filename);
-}
-
-HRESULT NetworkRequest::Pause() {
- return impl_->Pause();
-}
-
-HRESULT NetworkRequest::Resume() {
- return impl_->Resume();
-}
-
-HRESULT NetworkRequest::Cancel() {
- return impl_->Cancel();
-}
-
-void NetworkRequest::AddHeader(const TCHAR* name, const TCHAR* value) {
- return impl_->AddHeader(name, value);
-}
-
-int NetworkRequest::http_status_code() const {
- return impl_->http_status_code();
-}
-
-void NetworkRequest::set_proxy_auth_config(const ProxyAuthConfig& config) {
- return impl_->set_proxy_auth_config(config);
-}
-
-void NetworkRequest::set_num_retries(int num_retries) {
- return impl_->set_num_retries(num_retries);
-}
-
-void NetworkRequest::set_time_between_retries(int time_between_retries_ms) {
- return impl_->set_time_between_retries(time_between_retries_ms);
-}
-
-void NetworkRequest::set_callback(NetworkRequestCallback* callback) {
- return impl_->set_callback(callback);
-}
-
-void NetworkRequest::set_preserve_protocol(bool preserve_protocol) {
- return impl_->set_preserve_protocol(preserve_protocol);
-}
-
-CString NetworkRequest::response_headers() const {
- return impl_->response_headers();
-}
-
-CString NetworkRequest::trace() const {
- return impl_->trace();
-}
-
-HRESULT NetworkRequest::QueryHeadersString(uint32 info_level,
- const TCHAR* name,
- CString* value) {
- return impl_->QueryHeadersString(info_level, name, value);
-}
-
-void NetworkRequest::set_low_priority(bool low_priority) {
- return impl_->set_low_priority(low_priority);
-}
-
-void NetworkRequest::set_proxy_configuration(
- const ProxyConfig* proxy_configuration) {
- return impl_->set_proxy_configuration(proxy_configuration);
-}
-
-HRESULT PostRequest(NetworkRequest* network_request,
- bool fallback_to_https,
- const CString& url,
- const CString& request_string,
- std::vector<uint8>* response) {
- return detail::PostRequest(network_request,
- fallback_to_https,
- url,
- request_string,
- response);
-}
-
-HRESULT GetRequest(NetworkRequest* network_request,
- const CString& url,
- std::vector<uint8>* response) {
- return detail::GetRequest(network_request, url, response);
-}
-
-} // namespace omaha
-
« no previous file with comments | « net/network_request.h ('k') | net/network_request_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698