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

Side by Side Diff: chrome/browser/file_path_watcher/file_path_watcher_inotify.cc

Issue 6028009: Move base/thread.h to base/threading, fix up callers to use the new location.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/file_path_watcher/file_path_watcher.h" 5 #include "chrome/browser/file_path_watcher/file_path_watcher.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <string.h> 8 #include <string.h>
9 #include <sys/inotify.h> 9 #include <sys/inotify.h>
10 #include <sys/ioctl.h> 10 #include <sys/ioctl.h>
11 #include <sys/select.h> 11 #include <sys/select.h>
12 #include <unistd.h> 12 #include <unistd.h>
13 13
14 #include <algorithm> 14 #include <algorithm>
15 #include <set> 15 #include <set>
16 #include <utility> 16 #include <utility>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/eintr_wrapper.h" 19 #include "base/eintr_wrapper.h"
20 #include "base/file_path.h" 20 #include "base/file_path.h"
21 #include "base/file_util.h" 21 #include "base/file_util.h"
22 #include "base/hash_tables.h" 22 #include "base/hash_tables.h"
23 #include "base/lazy_instance.h" 23 #include "base/lazy_instance.h"
24 #include "base/lock.h" 24 #include "base/lock.h"
25 #include "base/logging.h" 25 #include "base/logging.h"
26 #include "base/message_loop.h" 26 #include "base/message_loop.h"
27 #include "base/scoped_ptr.h" 27 #include "base/scoped_ptr.h"
28 #include "base/task.h" 28 #include "base/task.h"
29 #include "base/thread.h" 29 #include "base/threading/thread.h"
30 30
31 namespace { 31 namespace {
32 32
33 class FilePathWatcherImpl; 33 class FilePathWatcherImpl;
34 34
35 // Singleton to manage all inotify watches. 35 // Singleton to manage all inotify watches.
36 // TODO(tony): It would be nice if this wasn't a singleton. 36 // TODO(tony): It would be nice if this wasn't a singleton.
37 // http://crbug.com/38174 37 // http://crbug.com/38174
38 class InotifyReader { 38 class InotifyReader {
39 public: 39 public:
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 } 403 }
404 404
405 return true; 405 return true;
406 } 406 }
407 407
408 } // namespace 408 } // namespace
409 409
410 FilePathWatcher::FilePathWatcher() { 410 FilePathWatcher::FilePathWatcher() {
411 impl_ = new FilePathWatcherImpl(); 411 impl_ = new FilePathWatcherImpl();
412 } 412 }
OLDNEW
« no previous file with comments | « chrome/browser/external_protocol_handler.cc ('k') | chrome/browser/file_system/file_system_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698