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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/filter/gzip_header.cc ('k') | net/filter/mock_filter_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
9
8 #include <string> 10 #include <string>
9 11
12 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
11 #include "net/base/sdch_manager.h" 14 #include "net/base/sdch_manager.h"
12 #include "net/filter/filter.h" 15 #include "net/filter/filter.h"
13 #include "net/log/net_log.h" 16 #include "net/log/net_log.h"
14 #include "url/gurl.h" 17 #include "url/gurl.h"
15 18
16 namespace net { 19 namespace net {
17 20
18 class URLRequestContext; 21 class URLRequestContext;
19 22
(...skipping 28 matching lines...) Expand all
48 // What was this data requested from a server? 51 // What was this data requested from a server?
49 base::Time GetRequestTime() const override; 52 base::Time GetRequestTime() const override;
50 53
51 // Is data supplied from cache, or fresh across the net? 54 // Is data supplied from cache, or fresh across the net?
52 bool IsCachedContent() const override; 55 bool IsCachedContent() const override;
53 56
54 // Handle to dictionaries advertised. 57 // Handle to dictionaries advertised.
55 SdchManager::DictionarySet* SdchDictionariesAdvertised() const override; 58 SdchManager::DictionarySet* SdchDictionariesAdvertised() const override;
56 59
57 // How many bytes were fed to filter(s) so far? 60 // How many bytes were fed to filter(s) so far?
58 int64 GetByteReadCount() const override; 61 int64_t GetByteReadCount() const override;
59 62
60 int GetResponseCode() const override; 63 int GetResponseCode() const override;
61 64
62 // The URLRequestContext associated with the request. 65 // The URLRequestContext associated with the request.
63 const URLRequestContext* GetURLRequestContext() const override; 66 const URLRequestContext* GetURLRequestContext() const override;
64 67
65 void RecordPacketStats(StatisticSelector statistic) const override {} 68 void RecordPacketStats(StatisticSelector statistic) const override {}
66 69
67 const BoundNetLog& GetNetLog() const override; 70 const BoundNetLog& GetNetLog() const override;
68 71
69 private: 72 private:
70 std::string mime_type_; 73 std::string mime_type_;
71 GURL gurl_; 74 GURL gurl_;
72 base::Time request_time_; 75 base::Time request_time_;
73 bool is_cached_content_; 76 bool is_cached_content_;
74 scoped_ptr<SdchManager::DictionarySet> dictionaries_handle_; 77 scoped_ptr<SdchManager::DictionarySet> dictionaries_handle_;
75 bool ok_to_call_get_url_; 78 bool ok_to_call_get_url_;
76 int response_code_; 79 int response_code_;
77 scoped_ptr<URLRequestContext> context_; 80 scoped_ptr<URLRequestContext> context_;
78 BoundNetLog net_log_; 81 BoundNetLog net_log_;
79 82
80 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); 83 DISALLOW_COPY_AND_ASSIGN(MockFilterContext);
81 }; 84 };
82 85
83 } // namespace net 86 } // namespace net
84 87
85 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_ 88 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_
OLDNEW
« no previous file with comments | « net/filter/gzip_header.cc ('k') | net/filter/mock_filter_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698