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

Side by Side Diff: chrome/browser/devtools/devtools_file_system_indexer.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <string> 11 #include <string>
10 #include <vector> 12 #include <vector>
11 13
12 #include "base/callback.h" 14 #include "base/callback.h"
13 #include "base/files/file_proxy.h" 15 #include "base/files/file_proxy.h"
16 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
15 18
16 class Profile; 19 class Profile;
17 20
18 namespace base { 21 namespace base {
19 class FilePath; 22 class FilePath;
20 class FileEnumerator; 23 class FileEnumerator;
21 class Time; 24 class Time;
22 } 25 }
23 26
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 66
64 base::FilePath file_system_path_; 67 base::FilePath file_system_path_;
65 TotalWorkCallback total_work_callback_; 68 TotalWorkCallback total_work_callback_;
66 WorkedCallback worked_callback_; 69 WorkedCallback worked_callback_;
67 DoneCallback done_callback_; 70 DoneCallback done_callback_;
68 scoped_ptr<base::FileEnumerator> file_enumerator_; 71 scoped_ptr<base::FileEnumerator> file_enumerator_;
69 typedef std::map<base::FilePath, base::Time> FilePathTimesMap; 72 typedef std::map<base::FilePath, base::Time> FilePathTimesMap;
70 FilePathTimesMap file_path_times_; 73 FilePathTimesMap file_path_times_;
71 FilePathTimesMap::const_iterator indexing_it_; 74 FilePathTimesMap::const_iterator indexing_it_;
72 base::FileProxy current_file_; 75 base::FileProxy current_file_;
73 int64 current_file_offset_; 76 int64_t current_file_offset_;
74 typedef int32 Trigram; 77 typedef int32_t Trigram;
75 std::vector<Trigram> current_trigrams_; 78 std::vector<Trigram> current_trigrams_;
76 // The index in this vector is the trigram id. 79 // The index in this vector is the trigram id.
77 std::vector<bool> current_trigrams_set_; 80 std::vector<bool> current_trigrams_set_;
78 base::TimeTicks last_worked_notification_time_; 81 base::TimeTicks last_worked_notification_time_;
79 int files_indexed_; 82 int files_indexed_;
80 bool stopped_; 83 bool stopped_;
81 }; 84 };
82 85
83 DevToolsFileSystemIndexer(); 86 DevToolsFileSystemIndexer();
84 87
(...skipping 16 matching lines...) Expand all
101 virtual ~DevToolsFileSystemIndexer(); 104 virtual ~DevToolsFileSystemIndexer();
102 105
103 void SearchInPathOnFileThread(const std::string& file_system_path, 106 void SearchInPathOnFileThread(const std::string& file_system_path,
104 const std::string& query, 107 const std::string& query,
105 const SearchCallback& callback); 108 const SearchCallback& callback);
106 109
107 DISALLOW_COPY_AND_ASSIGN(DevToolsFileSystemIndexer); 110 DISALLOW_COPY_AND_ASSIGN(DevToolsFileSystemIndexer);
108 }; 111 };
109 112
110 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_ 113 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_file_helper.cc ('k') | chrome/browser/devtools/devtools_file_system_indexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698