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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_sync_client.cc

Issue 10874028: Rename GDataFileSystem* to DriveFileSystem* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remaining manual changes Created 8 years, 4 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 (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/gdata/gdata_sync_client.h" 5 #include "chrome/browser/chromeos/gdata/gdata_sync_client.h"
6 6
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 GDataSyncClient::SyncTask::SyncTask(SyncType in_sync_type, 68 GDataSyncClient::SyncTask::SyncTask(SyncType in_sync_type,
69 const std::string& in_resource_id, 69 const std::string& in_resource_id,
70 const base::Time& in_timestamp) 70 const base::Time& in_timestamp)
71 : sync_type(in_sync_type), 71 : sync_type(in_sync_type),
72 resource_id(in_resource_id), 72 resource_id(in_resource_id),
73 timestamp(in_timestamp) { 73 timestamp(in_timestamp) {
74 } 74 }
75 75
76 GDataSyncClient::GDataSyncClient(Profile* profile, 76 GDataSyncClient::GDataSyncClient(Profile* profile,
77 GDataFileSystemInterface* file_system, 77 DriveFileSystemInterface* file_system,
78 DriveCache* cache) 78 DriveCache* cache)
79 : profile_(profile), 79 : profile_(profile),
80 file_system_(file_system), 80 file_system_(file_system),
81 cache_(cache), 81 cache_(cache),
82 registrar_(new PrefChangeRegistrar), 82 registrar_(new PrefChangeRegistrar),
83 delay_(base::TimeDelta::FromSeconds(kDelaySeconds)), 83 delay_(base::TimeDelta::FromSeconds(kDelaySeconds)),
84 sync_loop_is_running_(false), 84 sync_loop_is_running_(false),
85 weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 85 weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
86 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 86 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
87 } 87 }
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 const content::NotificationDetails& details) { 457 const content::NotificationDetails& details) {
458 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 458 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
459 459
460 // Resume the sync loop if gdata preferences are changed. Note that we 460 // Resume the sync loop if gdata preferences are changed. Note that we
461 // don't need to check the new values here as these will be checked in 461 // don't need to check the new values here as these will be checked in
462 // ShouldStopSyncLoop() as soon as the loop is resumed. 462 // ShouldStopSyncLoop() as soon as the loop is resumed.
463 StartSyncLoop(); 463 StartSyncLoop();
464 } 464 }
465 465
466 } // namespace gdata 466 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698