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

Side by Side Diff: chrome/browser/devtools/devtools_file_watcher.cc

Issue 1502373009: Allow std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, more HashPair -> HashInts Created 4 years, 11 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "chrome/browser/devtools/devtools_file_watcher.h" 5 #include "chrome/browser/devtools/devtools_file_watcher.h"
6 6
7 #include <algorithm>
7 #include <map> 8 #include <map>
8 #include <set> 9 #include <set>
9 10
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "base/files/file_enumerator.h" 12 #include "base/files/file_enumerator.h"
12 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
13 #include "base/files/file_path_watcher.h" 14 #include "base/files/file_path_watcher.h"
14 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
15 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
16 17
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 172
172 void DevToolsFileWatcher::AddWatch(const base::FilePath& path) { 173 void DevToolsFileWatcher::AddWatch(const base::FilePath& path) {
173 DCHECK_CURRENTLY_ON(BrowserThread::FILE); 174 DCHECK_CURRENTLY_ON(BrowserThread::FILE);
174 shared_watcher_->AddWatch(path); 175 shared_watcher_->AddWatch(path);
175 } 176 }
176 177
177 void DevToolsFileWatcher::RemoveWatch(const base::FilePath& path) { 178 void DevToolsFileWatcher::RemoveWatch(const base::FilePath& path) {
178 DCHECK_CURRENTLY_ON(BrowserThread::FILE); 179 DCHECK_CURRENTLY_ON(BrowserThread::FILE);
179 shared_watcher_->RemoveWatch(path); 180 shared_watcher_->RemoveWatch(path);
180 } 181 }
OLDNEW
« no previous file with comments | « cc/tiles/image_decode_controller.h ('k') | chrome/browser/extensions/api/log_private/filter_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698