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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/event_router.h

Issue 953273002: Update the Drive state in Files app when the refresh token is fetched. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/event_router.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void DefaultNetworkChanged(const chromeos::NetworkState* network) override; 114 void DefaultNetworkChanged(const chromeos::NetworkState* network) override;
115 115
116 // drive::JobListObserver overrides. 116 // drive::JobListObserver overrides.
117 void OnJobAdded(const drive::JobInfo& job_info) override; 117 void OnJobAdded(const drive::JobInfo& job_info) override;
118 void OnJobUpdated(const drive::JobInfo& job_info) override; 118 void OnJobUpdated(const drive::JobInfo& job_info) override;
119 void OnJobDone(const drive::JobInfo& job_info, 119 void OnJobDone(const drive::JobInfo& job_info,
120 drive::FileError error) override; 120 drive::FileError error) override;
121 121
122 // drive::DriveServiceObserver overrides. 122 // drive::DriveServiceObserver overrides.
123 void OnRefreshTokenInvalid() override; 123 void OnRefreshTokenInvalid() override;
124 void OnReadyToSendRequests() override;
124 125
125 // drive::FileSystemObserver overrides. 126 // drive::FileSystemObserver overrides.
126 void OnDirectoryChanged(const base::FilePath& drive_path) override; 127 void OnDirectoryChanged(const base::FilePath& drive_path) override;
127 void OnFileChanged(const drive::FileChange& changed_files) override; 128 void OnFileChanged(const drive::FileChange& changed_files) override;
128 void OnDriveSyncError(drive::file_system::DriveSyncErrorType type, 129 void OnDriveSyncError(drive::file_system::DriveSyncErrorType type,
129 const base::FilePath& drive_path) override; 130 const base::FilePath& drive_path) override;
130 131
131 // VolumeManagerObserver overrides. 132 // VolumeManagerObserver overrides.
132 void OnDiskAdded(const chromeos::disks::DiskMountManager::Disk& disk, 133 void OnDiskAdded(const chromeos::disks::DiskMountManager::Disk& disk,
133 bool mounting) override; 134 bool mounting) override;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // Note: This should remain the last member so it'll be destroyed and 246 // Note: This should remain the last member so it'll be destroyed and
246 // invalidate the weak pointers before any other members are destroyed. 247 // invalidate the weak pointers before any other members are destroyed.
247 base::WeakPtrFactory<EventRouter> weak_factory_; 248 base::WeakPtrFactory<EventRouter> weak_factory_;
248 249
249 DISALLOW_COPY_AND_ASSIGN(EventRouter); 250 DISALLOW_COPY_AND_ASSIGN(EventRouter);
250 }; 251 };
251 252
252 } // namespace file_manager 253 } // namespace file_manager
253 254
254 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ 255 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698