| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_WEBRESPONSEIMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBRESPONSEIMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBRESPONSEIMPL_H_ | 6 #define WEBKIT_GLUE_WEBRESPONSEIMPL_H_ |
| 7 | 7 |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "webkit/glue/glue_util.h" | 9 #include "webkit/glue/glue_util.h" |
| 10 #include "webkit/glue/webresponse.h" | 10 #include "webkit/glue/webresponse.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Get the security info (state of the SSL connection). | 34 // Get the security info (state of the SSL connection). |
| 35 virtual std::string GetSecurityInfo() const { | 35 virtual std::string GetSecurityInfo() const { |
| 36 return webkit_glue::CStringToStdString(response_.getSecurityInfo()); | 36 return webkit_glue::CStringToStdString(response_.getSecurityInfo()); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void set_resource_response(const WebCore::ResourceResponse& response) { | 39 void set_resource_response(const WebCore::ResourceResponse& response) { |
| 40 response_ = response; | 40 response_ = response; |
| 41 } | 41 } |
| 42 | 42 |
| 43 virtual bool IsContentFiltered() const { | 43 virtual bool IsContentFiltered() const { |
| 44 return response_.isContentFiltered(); | 44 return response_.isContentFiltered(); |
| 45 } | 45 } |
| 46 |
| 47 virtual int64 GetAppCacheID() const { |
| 48 return response_.getAppCacheID(); |
| 49 } |
| 46 | 50 |
| 47 private: | 51 private: |
| 48 WebCore::ResourceResponse response_; | 52 WebCore::ResourceResponse response_; |
| 49 | 53 |
| 50 DISALLOW_EVIL_CONSTRUCTORS(WebResponseImpl); | 54 DISALLOW_EVIL_CONSTRUCTORS(WebResponseImpl); |
| 51 }; | 55 }; |
| 52 | 56 |
| 53 #endif // #ifndef WEBKIT_GLUE_WEBRESPONSEIMPL_H_ | 57 #endif // #ifndef WEBKIT_GLUE_WEBRESPONSEIMPL_H_ |
| OLD | NEW |