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

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

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 #ifndef NET_FILTER_MOCK_FILTER_CONTEXT_H_ 5 #ifndef NET_FILTER_MOCK_FILTER_CONTEXT_H_
6 #define NET_FILTER_MOCK_FILTER_CONTEXT_H_ 6 #define NET_FILTER_MOCK_FILTER_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // What was this data requested from a server? 54 // What was this data requested from a server?
55 virtual base::Time GetRequestTime() const OVERRIDE; 55 virtual base::Time GetRequestTime() const OVERRIDE;
56 56
57 // Is data supplied from cache, or fresh across the net? 57 // Is data supplied from cache, or fresh across the net?
58 virtual bool IsCachedContent() const OVERRIDE; 58 virtual bool IsCachedContent() const OVERRIDE;
59 59
60 // Is this a download? 60 // Is this a download?
61 virtual bool IsDownload() const OVERRIDE; 61 virtual bool IsDownload() const OVERRIDE;
62 62
63 // Was this data flagged as a response to a request with an SDCH dictionary? 63 // Was this data flagged as a response to a request with an SDCH dictionary?
64 virtual bool IsSdchResponse() const OVERRIDE; 64 virtual bool SdchResponseExpected() const OVERRIDE;
65 65
66 // How many bytes were fed to filter(s) so far? 66 // How many bytes were fed to filter(s) so far?
67 virtual int64 GetByteReadCount() const OVERRIDE; 67 virtual int64 GetByteReadCount() const OVERRIDE;
68 68
69 virtual int GetResponseCode() const OVERRIDE; 69 virtual int GetResponseCode() const OVERRIDE;
70 70
71 // The URLRequestContext associated with the request. 71 // The URLRequestContext associated with the request.
72 virtual const URLRequestContext* GetURLRequestContext() const OVERRIDE; 72 virtual const URLRequestContext* GetURLRequestContext() const OVERRIDE;
73 73
74 virtual void RecordPacketStats(StatisticSelector statistic) const OVERRIDE {} 74 virtual void RecordPacketStats(StatisticSelector statistic) const OVERRIDE {}
(...skipping 10 matching lines...) Expand all
85 bool ok_to_call_get_url_; 85 bool ok_to_call_get_url_;
86 int response_code_; 86 int response_code_;
87 scoped_ptr<URLRequestContext> context_; 87 scoped_ptr<URLRequestContext> context_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); 89 DISALLOW_COPY_AND_ASSIGN(MockFilterContext);
90 }; 90 };
91 91
92 } // namespace net 92 } // namespace net
93 93
94 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_ 94 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698