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

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

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 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 bool has_next); 60 bool has_next);
61 61
62 // Handles error response for the |request_id|. If handling the error fails, 62 // Handles error response for the |request_id|. If handling the error fails,
63 // returns false. Always disposes the request. 63 // returns false. Always disposes the request.
64 bool RejectRequest(int request_id, base::File::Error error); 64 bool RejectRequest(int request_id, base::File::Error error);
65 65
66 // Sets a custom timeout for tests. The new timeout value will be applied to 66 // Sets a custom timeout for tests. The new timeout value will be applied to
67 // new requests 67 // new requests
68 void SetTimeoutForTests(const base::TimeDelta& timeout); 68 void SetTimeoutForTests(const base::TimeDelta& timeout);
69 69
70 // Gets number of active requests for logging purposes.
71 // TODO(mtomasz): Introduce a logger class to gather more information
72 size_t GetActiveRequestsForLogging() const;
73
70 private: 74 private:
71 struct Request { 75 struct Request {
72 Request(); 76 Request();
73 ~Request(); 77 ~Request();
74 78
75 // Timer for discarding the request during a timeout. 79 // Timer for discarding the request during a timeout.
76 base::OneShotTimer<RequestManager> timeout_timer; 80 base::OneShotTimer<RequestManager> timeout_timer;
77 81
78 // Handler tied to this request. 82 // Handler tied to this request.
79 scoped_ptr<HandlerInterface> handler; 83 scoped_ptr<HandlerInterface> handler;
(...skipping 12 matching lines...) Expand all
92 base::TimeDelta timeout_; 96 base::TimeDelta timeout_;
93 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; 97 base::WeakPtrFactory<RequestManager> weak_ptr_factory_;
94 98
95 DISALLOW_COPY_AND_ASSIGN(RequestManager); 99 DISALLOW_COPY_AND_ASSIGN(RequestManager);
96 }; 100 };
97 101
98 } // namespace file_system_provider 102 } // namespace file_system_provider
99 } // namespace chromeos 103 } // namespace chromeos
100 104
101 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ 105 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/file_system_provider/request_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698