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

Side by Side Diff: components/domain_reliability/context.h

Issue 290473005: Domain Reliability: Include config_version in uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « no previous file | components/domain_reliability/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 COMPONENTS_DOMAIN_RELIABILITY_CONTEXT_H_ 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_CONTEXT_H_
6 #define COMPONENTS_DOMAIN_RELIABILITY_CONTEXT_H_ 6 #define COMPONENTS_DOMAIN_RELIABILITY_CONTEXT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Called to clear browsing data, since beacons are like browsing history. 46 // Called to clear browsing data, since beacons are like browsing history.
47 void ClearBeacons(); 47 void ClearBeacons();
48 48
49 void GetQueuedDataForTesting( 49 void GetQueuedDataForTesting(
50 size_t resource_index, 50 size_t resource_index,
51 std::vector<DomainReliabilityBeacon>* beacons_out, 51 std::vector<DomainReliabilityBeacon>* beacons_out,
52 uint32* successful_requests_out, 52 uint32* successful_requests_out,
53 uint32* failed_requests_out) const; 53 uint32* failed_requests_out) const;
54 54
55 const DomainReliabilityConfig& config() { return *config_.get(); } 55 const DomainReliabilityConfig& config() const { return *config_.get(); }
56 56
57 // Maximum number of beacons queued per context; if more than this many are 57 // Maximum number of beacons queued per context; if more than this many are
58 // queued; the oldest beacons will be removed. 58 // queued; the oldest beacons will be removed.
59 static const size_t kMaxQueuedBeacons; 59 static const size_t kMaxQueuedBeacons;
60 60
61 private: 61 private:
62 class ResourceState; 62 class ResourceState;
63 63
64 typedef ScopedVector<ResourceState> ResourceStateVector; 64 typedef ScopedVector<ResourceState> ResourceStateVector;
65 typedef ResourceStateVector::const_iterator ResourceStateIterator; 65 typedef ResourceStateVector::const_iterator ResourceStateIterator;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 base::TimeTicks last_upload_time_; 102 base::TimeTicks last_upload_time_;
103 103
104 base::WeakPtrFactory<DomainReliabilityContext> weak_factory_; 104 base::WeakPtrFactory<DomainReliabilityContext> weak_factory_;
105 105
106 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityContext); 106 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityContext);
107 }; 107 };
108 108
109 } // namespace domain_reliability 109 } // namespace domain_reliability
110 110
111 #endif // COMPONENTS_DOMAIN_RELIABILITY_CONTEXT_H_ 111 #endif // COMPONENTS_DOMAIN_RELIABILITY_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | components/domain_reliability/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698