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

Unified Diff: webkit/glue/weburlresponse_extradata_impl.h

Issue 9413038: SPDY - chrome:loadtimes() should display negotiated NPN protocol. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « webkit/glue/weburlloader_impl.cc ('k') | webkit/glue/weburlresponse_extradata_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlresponse_extradata_impl.h
===================================================================
--- webkit/glue/weburlresponse_extradata_impl.h (revision 0)
+++ webkit/glue/weburlresponse_extradata_impl.h (working copy)
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 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 WEBKIT_GLUE_WEBURLRESPONSE_EXTRADATA_IMPL_H_
+#define WEBKIT_GLUE_WEBURLRESPONSE_EXTRADATA_IMPL_H_
+#pragma once
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLResponse.h"
+#include "webkit/glue/webkit_glue_export.h"
+
+namespace webkit_glue {
+
+// Base class for Chrome's implementation of the "extra data".
+class WEBKIT_GLUE_EXPORT WebURLResponseExtraDataImpl
+ : NON_EXPORTED_BASE(public WebKit::WebURLResponse::ExtraData) {
+ public:
+ explicit WebURLResponseExtraDataImpl(
+ const std::string& npn_negotiated_protocol);
+ virtual ~WebURLResponseExtraDataImpl();
+
+ const std::string& npn_negotiated_protocol() const {
+ return npn_negotiated_protocol_;
+ }
+
+ private:
+ std::string npn_negotiated_protocol_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl);
+};
+
+} // namespace webkit_glue
+
+#endif // WEBKIT_GLUE_WEBURLRESPONSE_EXTRADATA_IMPL_H_
« no previous file with comments | « webkit/glue/weburlloader_impl.cc ('k') | webkit/glue/weburlresponse_extradata_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698