[Mac] PepperFlash default on DEV channel.
[chromium-blink-merge.git] / webkit / glue / weburlresponse_extradata_impl.h
bloba0cfc7f541bc6fd097ad4aaa1cf5ba5040c66c60
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_GLUE_WEBURLRESPONSE_EXTRADATA_IMPL_H_
6 #define WEBKIT_GLUE_WEBURLRESPONSE_EXTRADATA_IMPL_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLResponse.h"
13 #include "webkit/glue/webkit_glue_export.h"
15 namespace webkit_glue {
17 // Base class for Chrome's implementation of the "extra data".
18 class WEBKIT_GLUE_EXPORT WebURLResponseExtraDataImpl
19 : NON_EXPORTED_BASE(public WebKit::WebURLResponse::ExtraData) {
20 public:
21 explicit WebURLResponseExtraDataImpl(
22 const std::string& npn_negotiated_protocol);
23 virtual ~WebURLResponseExtraDataImpl();
25 const std::string& npn_negotiated_protocol() const {
26 return npn_negotiated_protocol_;
28 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; }
29 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) {
30 is_ftp_directory_listing_ = is_ftp_directory_listing;
34 private:
35 std::string npn_negotiated_protocol_;
36 bool is_ftp_directory_listing_;
38 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl);
41 } // namespace webkit_glue
43 #endif // WEBKIT_GLUE_WEBURLRESPONSE_EXTRADATA_IMPL_H_