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

Side by Side Diff: net/dns/watching_file_reader.cc

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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 | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/in_flight_io.cc ('k') | net/http/http_cache.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "net/dns/watching_file_reader.h" 5 #include "net/dns/watching_file_reader.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h"
8 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
9 #include "base/threading/worker_pool.h" 10 #include "base/threading/worker_pool.h"
10 11
11 namespace net { 12 namespace net {
12 13
13 FilePathWatcherShim::FilePathWatcherShim() 14 FilePathWatcherShim::FilePathWatcherShim()
14 : watcher_(new base::files::FilePathWatcher()) {} 15 : watcher_(new base::files::FilePathWatcher()) {}
15 FilePathWatcherShim::~FilePathWatcherShim() {} 16 FilePathWatcherShim::~FilePathWatcherShim() {}
16 17
17 bool FilePathWatcherShim::Watch( 18 bool FilePathWatcherShim::Watch(
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 reading_ = false; 128 reading_ = false;
128 if (read_pending_) { 129 if (read_pending_) {
129 // Discard this result and re-read. 130 // Discard this result and re-read.
130 ReadNow(); 131 ReadNow();
131 return; 132 return;
132 } 133 }
133 this->OnReadFinished(); 134 this->OnReadFinished();
134 } 135 }
135 136
136 } // namespace net 137 } // namespace net
137
OLDNEW
« no previous file with comments | « net/disk_cache/in_flight_io.cc ('k') | net/http/http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698