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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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/sync_file_system/drive_backend/sync_engine_context.h" 5 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "chrome/browser/drive/drive_service_interface.h"
13 #include "chrome/browser/drive/drive_uploader.h"
14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" 12 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
15 #include "chrome/browser/sync_file_system/remote_change_processor.h" 13 #include "chrome/browser/sync_file_system/remote_change_processor.h"
16 #include "chrome/browser/sync_file_system/task_logger.h" 14 #include "chrome/browser/sync_file_system/task_logger.h"
15 #include "components/drive/drive_uploader.h"
16 #include "components/drive/service/drive_service_interface.h"
17 17
18 namespace sync_file_system { 18 namespace sync_file_system {
19 namespace drive_backend { 19 namespace drive_backend {
20 20
21 SyncEngineContext::SyncEngineContext( 21 SyncEngineContext::SyncEngineContext(
22 scoped_ptr<drive::DriveServiceInterface> drive_service, 22 scoped_ptr<drive::DriveServiceInterface> drive_service,
23 scoped_ptr<drive::DriveUploaderInterface> drive_uploader, 23 scoped_ptr<drive::DriveUploaderInterface> drive_uploader,
24 TaskLogger* task_logger, 24 TaskLogger* task_logger,
25 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, 25 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner,
26 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, 26 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 DCHECK(remote_change_processor); 98 DCHECK(remote_change_processor);
99 remote_change_processor_ = remote_change_processor; 99 remote_change_processor_ = remote_change_processor;
100 } 100 }
101 101
102 void SyncEngineContext::DetachFromSequence() { 102 void SyncEngineContext::DetachFromSequence() {
103 sequence_checker_.DetachFromSequence(); 103 sequence_checker_.DetachFromSequence();
104 } 104 }
105 105
106 } // namespace drive_backend 106 } // namespace drive_backend
107 } // namespace sync_file_system 107 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698