| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_BASE_MOCK_FILTER_CONTEXT_H_ | 5 #ifndef NET_BASE_MOCK_FILTER_CONTEXT_H_ |
| 6 #define NET_BASE_MOCK_FILTER_CONTEXT_H_ | 6 #define NET_BASE_MOCK_FILTER_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "googleurl/src/gurl.h" | |
| 11 #include "net/base/filter.h" | 10 #include "net/base/filter.h" |
| 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class MockFilterContext : public FilterContext { | 15 class MockFilterContext : public FilterContext { |
| 16 public: | 16 public: |
| 17 MockFilterContext(); | 17 MockFilterContext(); |
| 18 virtual ~MockFilterContext(); | 18 virtual ~MockFilterContext(); |
| 19 | 19 |
| 20 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } | 20 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } |
| 21 void SetURL(const GURL& gurl) { gurl_ = gurl; } | 21 void SetURL(const GURL& gurl) { gurl_ = gurl; } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool is_download_; | 61 bool is_download_; |
| 62 bool is_sdch_response_; | 62 bool is_sdch_response_; |
| 63 int response_code_; | 63 int response_code_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); | 65 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace net | 68 } // namespace net |
| 69 | 69 |
| 70 #endif // NET_BASE_MOCK_FILTER_CONTEXT_H_ | 70 #endif // NET_BASE_MOCK_FILTER_CONTEXT_H_ |
| OLD | NEW |