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

Issue 14697022: Cache for mDNS records (Closed)

Created:
7 years, 7 months ago by Noam Samuel
Modified:
7 years, 7 months ago
Reviewers:
cbentzel, szym, gene
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@record_parsed_klassbit
Visibility:
Public.

Description

Cache for mDNS records A cache for storing mDNS records. Supports scheduling expirations for records, though the actual expiration mechanism may need to be iterated upon. BUG=233821 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201656

Patch Set 1 #

Total comments: 26

Patch Set 2 : #

Patch Set 3 : #

Total comments: 36

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Patch Set 6 : Removed copy constructor from RecordParsed #

Total comments: 23

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+782 lines, -12 lines) Patch
M net/dns/dns_protocol.h View 1 3 2 chunks +5 lines, -1 line 0 comments Download
A net/dns/mdns_cache.h View 1 2 3 4 5 6 1 chunk +108 lines, -0 lines 0 comments Download
A net/dns/mdns_cache.cc View 1 2 3 4 5 6 1 chunk +182 lines, -0 lines 0 comments Download
A net/dns/mdns_cache_unittest.cc View 1 2 3 4 5 6 1 chunk +234 lines, -0 lines 0 comments Download
M net/dns/record_parsed.h View 1 2 3 4 5 3 chunks +14 lines, -4 lines 0 comments Download
M net/dns/record_parsed.cc View 1 2 3 4 5 5 chunks +29 lines, -4 lines 0 comments Download
M net/dns/record_parsed_unittest.cc View 1 2 3 4 5 6 3 chunks +41 lines, -1 line 0 comments Download
M net/dns/record_rdata.h View 1 2 3 4 5 6 8 chunks +38 lines, -1 line 0 comments Download
M net/dns/record_rdata.cc View 1 2 3 4 5 6 5 chunks +87 lines, -0 lines 0 comments Download
M net/dns/record_rdata_unittest.cc View 1 2 3 4 5 6 6 chunks +38 lines, -1 line 0 comments Download
M net/net.gyp View 1 2 3 4 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Noam Samuel
7 years, 7 months ago (2013-05-10 23:49:14 UTC) #1
cbentzel
Can this use an ExpiringCache?
7 years, 7 months ago (2013-05-14 11:42:32 UTC) #2
Noam Samuel
On 2013/05/14 11:42:32, cbentzel wrote: > Can this use an ExpiringCache? My one concern is ...
7 years, 7 months ago (2013-05-14 18:11:00 UTC) #3
szym
I'm going to have to take a closer look at how this cache will be ...
7 years, 7 months ago (2013-05-14 18:14:27 UTC) #4
Noam Samuel
https://codereview.chromium.org/14697022/diff/1/net/dns/dns_protocol.h File net/dns/dns_protocol.h (right): https://codereview.chromium.org/14697022/diff/1/net/dns/dns_protocol.h#newcode93 net/dns/dns_protocol.h:93: // The top bit of the MDns class is ...
7 years, 7 months ago (2013-05-14 19:28:00 UTC) #5
Noam Samuel
As for the use of linked_ptr, it is used so that I can store the ...
7 years, 7 months ago (2013-05-15 00:11:31 UTC) #6
Noam Samuel
https://codereview.chromium.org/14697022/diff/1/net/dns/record_rdata.cc File net/dns/record_rdata.cc (right): https://codereview.chromium.org/14697022/diff/1/net/dns/record_rdata.cc#newcode68 net/dns/record_rdata.cc:68: return scoped_ptr<const RecordRdata>(return_value.Pass()); On 2013/05/14 18:14:27, szym wrote: > ...
7 years, 7 months ago (2013-05-15 20:17:56 UTC) #7
szym
If you only need linked_ptr to be able to store it in a std::map, then ...
7 years, 7 months ago (2013-05-15 20:45:16 UTC) #8
Noam Samuel
SGTM, done. On 2013/05/15 20:45:16, szym wrote: > If you only need linked_ptr to be ...
7 years, 7 months ago (2013-05-16 00:03:12 UTC) #9
szym
https://codereview.chromium.org/14697022/diff/32001/net/dns/mdns_cache.cc File net/dns/mdns_cache.cc (right): https://codereview.chromium.org/14697022/diff/32001/net/dns/mdns_cache.cc#newcode18 net/dns/mdns_cache.cc:18: // Allows time for hosts to send updated records. ...
7 years, 7 months ago (2013-05-17 05:04:34 UTC) #10
Noam Samuel
https://codereview.chromium.org/14697022/diff/32001/net/dns/mdns_cache.h File net/dns/mdns_cache.h (right): https://codereview.chromium.org/14697022/diff/32001/net/dns/mdns_cache.h#newcode38 net/dns/mdns_cache.h:38: RecordRemoved, On 2013/05/17 05:04:34, szym wrote: > RecordRemoved is ...
7 years, 7 months ago (2013-05-17 17:21:02 UTC) #11
Noam Samuel
Hey, uploaded a new patch. This time I got the diff-base right, so all the ...
7 years, 7 months ago (2013-05-17 22:26:05 UTC) #12
szym
https://codereview.chromium.org/14697022/diff/49001/net/dns/mdns_cache.cc File net/dns/mdns_cache.cc (right): https://codereview.chromium.org/14697022/diff/49001/net/dns/mdns_cache.cc#newcode155 net/dns/mdns_cache.cc:155: // Records are deleted only upon request to make ...
7 years, 7 months ago (2013-05-20 19:35:15 UTC) #13
Noam Samuel
https://codereview.chromium.org/14697022/diff/49001/net/dns/mdns_cache.cc File net/dns/mdns_cache.cc (right): https://codereview.chromium.org/14697022/diff/49001/net/dns/mdns_cache.cc#newcode155 net/dns/mdns_cache.cc:155: // Records are deleted only upon request to make ...
7 years, 7 months ago (2013-05-20 21:07:02 UTC) #14
szym
https://codereview.chromium.org/14697022/diff/49001/net/dns/record_parsed.h File net/dns/record_parsed.h (right): https://codereview.chromium.org/14697022/diff/49001/net/dns/record_parsed.h#newcode23 net/dns/record_parsed.h:23: RecordParsed(const RecordParsed&); On 2013/05/20 21:07:02, Noam Samuel (chromium) wrote: ...
7 years, 7 months ago (2013-05-20 21:13:03 UTC) #15
szym
https://codereview.chromium.org/14697022/diff/49001/net/dns/record_parsed.h File net/dns/record_parsed.h (right): https://codereview.chromium.org/14697022/diff/49001/net/dns/record_parsed.h#newcode23 net/dns/record_parsed.h:23: RecordParsed(const RecordParsed&); On 2013/05/20 21:13:03, szym wrote: > On ...
7 years, 7 months ago (2013-05-20 21:20:50 UTC) #16
Noam Samuel
OK, removed copy constructor and related code from this CL. On 2013/05/20 21:20:50, szym wrote: ...
7 years, 7 months ago (2013-05-20 22:26:10 UTC) #17
szym
lgtm https://codereview.chromium.org/14697022/diff/60001/net/dns/mdns_cache.cc File net/dns/mdns_cache.cc (right): https://codereview.chromium.org/14697022/diff/60001/net/dns/mdns_cache.cc#newcode47 net/dns/mdns_cache.cc:47: const MDnsCache::Key& key) const { one line https://codereview.chromium.org/14697022/diff/60001/net/dns/mdns_cache.cc#newcode60 ...
7 years, 7 months ago (2013-05-21 22:09:05 UTC) #18
Noam Samuel
https://codereview.chromium.org/14697022/diff/60001/net/dns/mdns_cache.cc File net/dns/mdns_cache.cc (right): https://codereview.chromium.org/14697022/diff/60001/net/dns/mdns_cache.cc#newcode47 net/dns/mdns_cache.cc:47: const MDnsCache::Key& key) const { On 2013/05/21 22:09:05, szym ...
7 years, 7 months ago (2013-05-21 23:00:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/14697022/84001
7 years, 7 months ago (2013-05-21 23:05:00 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-21 23:40:40 UTC) #21
Noam Samuel
Looks like all issues are issues with HEAD. Retrying now that the tree is open. ...
7 years, 7 months ago (2013-05-22 17:49:53 UTC) #22
Noam Samuel
Looks like all issues are issues with HEAD. Retrying now that the tree is open. ...
7 years, 7 months ago (2013-05-22 17:49:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/14697022/84001
7 years, 7 months ago (2013-05-22 18:19:43 UTC) #24
commit-bot: I haz the power
7 years, 7 months ago (2013-05-23 00:56:38 UTC) #25
Message was sent while issue was closed.
Change committed as 201656

Powered by Google App Engine
This is Rietveld 408576698