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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 2 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // How many bytes were fed to filter(s) so far? 61 // How many bytes were fed to filter(s) so far?
62 int64_t GetByteReadCount() const override; 62 int64_t GetByteReadCount() const override;
63 63
64 int GetResponseCode() const override; 64 int GetResponseCode() const override;
65 65
66 // The URLRequestContext associated with the request. 66 // The URLRequestContext associated with the request.
67 const URLRequestContext* GetURLRequestContext() const override; 67 const URLRequestContext* GetURLRequestContext() const override;
68 68
69 void RecordPacketStats(StatisticSelector statistic) const override {} 69 void RecordPacketStats(StatisticSelector statistic) const override {}
70 70
71 const BoundNetLog& GetNetLog() const override; 71 const NetLogWithSource& GetNetLog() const override;
72 72
73 private: 73 private:
74 std::string mime_type_; 74 std::string mime_type_;
75 GURL gurl_; 75 GURL gurl_;
76 base::Time request_time_; 76 base::Time request_time_;
77 bool is_cached_content_; 77 bool is_cached_content_;
78 std::unique_ptr<SdchManager::DictionarySet> dictionaries_handle_; 78 std::unique_ptr<SdchManager::DictionarySet> dictionaries_handle_;
79 bool ok_to_call_get_url_; 79 bool ok_to_call_get_url_;
80 int response_code_; 80 int response_code_;
81 std::unique_ptr<URLRequestContext> context_; 81 std::unique_ptr<URLRequestContext> context_;
82 BoundNetLog net_log_; 82 NetLogWithSource net_log_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); 84 DISALLOW_COPY_AND_ASSIGN(MockFilterContext);
85 }; 85 };
86 86
87 } // namespace net 87 } // namespace net
88 88
89 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_ 89 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698