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

Unified Diff: net/http/http_net_log_params.h

Issue 10399083: Make NetLog take in callbacks that return Values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix merge error Created 8 years, 6 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/base/net_log_unittest.cc ('k') | net/http/http_net_log_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_net_log_params.h
===================================================================
--- net/http/http_net_log_params.h (revision 141317)
+++ net/http/http_net_log_params.h (working copy)
@@ -1,71 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_HTTP_HTTP_NET_LOG_PARAMS_H_
-#define NET_HTTP_HTTP_NET_LOG_PARAMS_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "net/base/net_log.h"
-#include "net/http/http_request_headers.h"
-
-namespace base {
-class Value;
-}
-
-namespace net {
-
-class HttpResponseHeaders;
-
-class NetLogHttpRequestParameter : public NetLog::EventParameters {
- public:
- NetLogHttpRequestParameter(const std::string& line,
- const HttpRequestHeaders& headers);
-
- const HttpRequestHeaders& GetHeaders() const {
- return headers_;
- }
-
- const std::string& GetLine() const {
- return line_;
- }
-
- // NetLog::EventParameters
- virtual base::Value* ToValue() const OVERRIDE;
-
- private:
- virtual ~NetLogHttpRequestParameter();
-
- const std::string line_;
- HttpRequestHeaders headers_;
-
- DISALLOW_COPY_AND_ASSIGN(NetLogHttpRequestParameter);
-};
-
-class NetLogHttpResponseParameter : public NetLog::EventParameters {
- public:
- explicit NetLogHttpResponseParameter(
- const scoped_refptr<HttpResponseHeaders>& headers);
-
- const HttpResponseHeaders& GetHeaders() const {
- return *headers_;
- }
-
- // NetLog::EventParameters
- virtual base::Value* ToValue() const OVERRIDE;
-
- private:
- virtual ~NetLogHttpResponseParameter();
-
- const scoped_refptr<HttpResponseHeaders> headers_;
-
- DISALLOW_COPY_AND_ASSIGN(NetLogHttpResponseParameter);
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_NET_LOG_PARAMS_H_
« no previous file with comments | « net/base/net_log_unittest.cc ('k') | net/http/http_net_log_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698