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

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

Issue 625463002: [fsp] Add support for observing entries and notifying about changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 2 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 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/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 10
(...skipping 30 matching lines...) Expand all
41 case COPY_ENTRY: 41 case COPY_ENTRY:
42 return "COPY_ENTRY"; 42 return "COPY_ENTRY";
43 case MOVE_ENTRY: 43 case MOVE_ENTRY:
44 return "MOVE_ENTRY"; 44 return "MOVE_ENTRY";
45 case TRUNCATE: 45 case TRUNCATE:
46 return "TRUNCATE"; 46 return "TRUNCATE";
47 case WRITE_FILE: 47 case WRITE_FILE:
48 return "WRITE_FILE"; 48 return "WRITE_FILE";
49 case ABORT: 49 case ABORT:
50 return "ABORT"; 50 return "ABORT";
51 case OBSERVE_DIRECTORY:
52 return "OBSERVE_DIRECTORY";
53 case UNOBSERVE_ENTRY:
54 return "UNOBSERVE_ENTRY";
51 case TESTING: 55 case TESTING:
52 return "TESTING"; 56 return "TESTING";
53 } 57 }
54 NOTREACHED(); 58 NOTREACHED();
55 return ""; 59 return "";
56 } 60 }
57 61
58 RequestManager::RequestManager( 62 RequestManager::RequestManager(
59 NotificationManagerInterface* notification_manager) 63 NotificationManagerInterface* notification_manager)
60 : notification_manager_(notification_manager), 64 : notification_manager_(notification_manager),
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 notification_manager_->HideUnresponsiveNotification(request_id); 250 notification_manager_->HideUnresponsiveNotification(request_id);
247 251
248 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); 252 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id));
249 253
250 TRACE_EVENT_ASYNC_END0( 254 TRACE_EVENT_ASYNC_END0(
251 "file_system_provider", "RequestManager::Request", request_id); 255 "file_system_provider", "RequestManager::Request", request_id);
252 } 256 }
253 257
254 } // namespace file_system_provider 258 } // namespace file_system_provider
255 } // namespace chromeos 259 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/request_manager.h ('k') | chrome/browser/chromeos/file_system_provider/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698