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

Unified Diff: chrome/browser/chromeos/file_system_provider/request_manager.h

Issue 440653003: [fsp] Add support for aborting running operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed DCHECKs. Created 6 years, 4 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
Index: chrome/browser/chromeos/file_system_provider/request_manager.h
diff --git a/chrome/browser/chromeos/file_system_provider/request_manager.h b/chrome/browser/chromeos/file_system_provider/request_manager.h
index 925b9b57cbde93b2149460a313753aeaee9f8902..43ce736774cf17a02e8f4cc2ed858d2e53752087 100644
--- a/chrome/browser/chromeos/file_system_provider/request_manager.h
+++ b/chrome/browser/chromeos/file_system_provider/request_manager.h
@@ -7,6 +7,7 @@
#include <map>
#include <string>
+#include <vector>
#include "base/callback.h"
#include "base/files/file.h"
@@ -37,6 +38,7 @@ enum RequestType {
MOVE_ENTRY,
TRUNCATE,
WRITE_FILE,
+ ABORT,
TESTING
};
@@ -125,9 +127,8 @@ class RequestManager {
// new requests
void SetTimeoutForTesting(const base::TimeDelta& timeout);
- // Gets number of active requests for logging purposes.
- // TODO(mtomasz): Introduce a logger class to gather more information
- size_t GetActiveRequestsForLogging() const;
+ // Gets list of active request ids.
+ std::vector<int> GetActiveRequestIds() const;
// Adds and removes observers.
void AddObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698