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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_system.cc

Issue 14020002: chromeos: Move chrome/browser/chromeos/extensions/file_browser* to chrome/browser/chromeos/file_man… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/external_filesystem_apitest.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 #include "chrome/browser/chromeos/drive/drive_file_system.h" 5 #include "chrome/browser/chromeos/drive/drive_file_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 base::TimeDelta::FromSeconds(polling_interval_sec_), 348 base::TimeDelta::FromSeconds(polling_interval_sec_),
349 base::Bind(&DriveFileSystem::CheckForUpdates, 349 base::Bind(&DriveFileSystem::CheckForUpdates,
350 weak_ptr_factory_.GetWeakPtr())); 350 weak_ptr_factory_.GetWeakPtr()));
351 } 351 }
352 352
353 void DriveFileSystem::StopPolling() { 353 void DriveFileSystem::StopPolling() {
354 // If unmount request comes from filesystem side, this method may be called 354 // If unmount request comes from filesystem side, this method may be called
355 // twice. First is just after unmounting on filesystem, second is after 355 // twice. First is just after unmounting on filesystem, second is after
356 // unmounting on filemanager on JS. In other words, if this is called from 356 // unmounting on filemanager on JS. In other words, if this is called from
357 // DriveSystemService::RemoveDriveMountPoint(), this will be called again from 357 // DriveSystemService::RemoveDriveMountPoint(), this will be called again from
358 // FileBrowserEventRouter::HandleRemoteUpdateRequestOnUIThread(). 358 // FileManagerEventRouter::HandleRemoteUpdateRequestOnUIThread().
359 // We choose to stopping updates asynchronous without waiting for filemanager, 359 // We choose to stopping updates asynchronous without waiting for filemanager,
360 // rather than waiting for completion of unmounting on filemanager. 360 // rather than waiting for completion of unmounting on filemanager.
361 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 361 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
362 if (update_timer_.IsRunning()) 362 if (update_timer_.IsRunning())
363 update_timer_.Stop(); 363 update_timer_.Stop();
364 } 364 }
365 365
366 void DriveFileSystem::SetPushNotificationEnabled(bool enabled) { 366 void DriveFileSystem::SetPushNotificationEnabled(bool enabled) {
367 push_notification_enabled_ = enabled; 367 push_notification_enabled_ = enabled;
368 polling_interval_sec_ = enabled ? kSlowPollingIntervalInSec : 368 polling_interval_sec_ = enabled ? kSlowPollingIntervalInSec :
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 return; 1709 return;
1710 } 1710 }
1711 1711
1712 PlatformFileInfoProto entry_file_info; 1712 PlatformFileInfoProto entry_file_info;
1713 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); 1713 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info);
1714 *entry_proto->mutable_file_info() = entry_file_info; 1714 *entry_proto->mutable_file_info() = entry_file_info;
1715 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); 1715 callback.Run(DRIVE_FILE_OK, entry_proto.Pass());
1716 } 1716 }
1717 1717
1718 } // namespace drive 1718 } // namespace drive
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/external_filesystem_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698