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

Side by Side Diff: net/filter/mock_filter_context.cc

Issue 537403003: Added new histogram for analyzing SDCH corruption detection cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated last set of comments. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "net/filter/mock_filter_context.h" 5 #include "net/filter/mock_filter_context.h"
6 6
7 #include "net/url_request/url_request_context.h" 7 #include "net/url_request/url_request_context.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // What was this data requested from a server? 48 // What was this data requested from a server?
49 base::Time MockFilterContext::GetRequestTime() const { 49 base::Time MockFilterContext::GetRequestTime() const {
50 return request_time_; 50 return request_time_;
51 } 51 }
52 52
53 bool MockFilterContext::IsCachedContent() const { return is_cached_content_; } 53 bool MockFilterContext::IsCachedContent() const { return is_cached_content_; }
54 54
55 bool MockFilterContext::IsDownload() const { return is_download_; } 55 bool MockFilterContext::IsDownload() const { return is_download_; }
56 56
57 bool MockFilterContext::IsSdchResponse() const { return is_sdch_response_; } 57 bool MockFilterContext::SdchResponseExpected() const {
58 return is_sdch_response_;
59 }
58 60
59 int64 MockFilterContext::GetByteReadCount() const { return 0; } 61 int64 MockFilterContext::GetByteReadCount() const { return 0; }
60 62
61 int MockFilterContext::GetResponseCode() const { return response_code_; } 63 int MockFilterContext::GetResponseCode() const { return response_code_; }
62 64
63 const URLRequestContext* MockFilterContext::GetURLRequestContext() const { 65 const URLRequestContext* MockFilterContext::GetURLRequestContext() const {
64 return context_.get(); 66 return context_.get();
65 } 67 }
66 68
67 } // namespace net 69 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698