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

Unified Diff: chrome/browser/devtools/devtools_file_system_indexer.h

Issue 231313002: Migrate DevToolsFileSystemIndexer to base::FileProxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_file_system_indexer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_file_system_indexer.h
diff --git a/chrome/browser/devtools/devtools_file_system_indexer.h b/chrome/browser/devtools/devtools_file_system_indexer.h
index 2f1322670c3f7ddba1eb25fb5328bc475d1076b6..828e2cd7b4780a00f53dbea5387a3be119dbf166 100644
--- a/chrome/browser/devtools/devtools_file_system_indexer.h
+++ b/chrome/browser/devtools/devtools_file_system_indexer.h
@@ -10,9 +10,8 @@
#include <vector>
#include "base/callback.h"
-#include "base/files/file.h"
+#include "base/files/file_proxy.h"
#include "base/memory/ref_counted.h"
-#include "base/platform_file.h"
class Profile;
@@ -52,9 +51,7 @@ class DevToolsFileSystemIndexer
void StopOnFileThread();
void CollectFilesToIndex();
void IndexFiles();
- void StartFileIndexing(base::File::Error error,
- base::PassPlatformFile pass_file,
- bool);
+ void StartFileIndexing(base::File::Error error);
void ReadFromFile();
void OnRead(base::File::Error error,
const char* data,
@@ -72,7 +69,7 @@ class DevToolsFileSystemIndexer
typedef std::map<base::FilePath, base::Time> FilePathTimesMap;
FilePathTimesMap file_path_times_;
FilePathTimesMap::const_iterator indexing_it_;
- base::PlatformFile current_file_;
+ base::FileProxy current_file_;
int64 current_file_offset_;
typedef int32 Trigram;
std::vector<Trigram> current_trigrams_;
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_file_system_indexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698