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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/request_manager.cc

Issue 296003012: [fsp] Introduce chrome://fsp-internals for logging and debugging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indentation. Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/file_system_provider/request_manager.h" 5 #include "chrome/browser/chromeos/file_system_provider/request_manager.h"
6 6
7 #include "base/files/file.h" 7 #include "base/files/file.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 void RequestManager::SetTimeoutForTests(const base::TimeDelta& timeout) { 102 void RequestManager::SetTimeoutForTests(const base::TimeDelta& timeout) {
103 timeout_ = timeout; 103 timeout_ = timeout;
104 } 104 }
105 105
106 void RequestManager::OnRequestTimeout(int request_id) { 106 void RequestManager::OnRequestTimeout(int request_id) {
107 RejectRequest(request_id, base::File::FILE_ERROR_ABORT); 107 RejectRequest(request_id, base::File::FILE_ERROR_ABORT);
108 } 108 }
109 109
110 size_t RequestManager::GetActiveRequestsForLogging() const {
111 return requests_.size();
112 }
113
110 RequestManager::Request::Request() {} 114 RequestManager::Request::Request() {}
111 115
112 RequestManager::Request::~Request() {} 116 RequestManager::Request::~Request() {}
113 117
114 } // namespace file_system_provider 118 } // namespace file_system_provider
115 } // namespace chromeos 119 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698