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

Side by Side Diff: chrome/browser/sync/glue/generic_change_processor.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/glue/generic_change_processor.h" 5 #include "chrome/browser/sync/glue/generic_change_processor.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/sync/api/sync_change.h" 9 #include "chrome/browser/sync/api/sync_change.h"
10 #include "chrome/browser/sync/api/sync_error.h" 10 #include "chrome/browser/sync/api/sync_error.h"
11 #include "chrome/browser/sync/api/syncable_service.h" 11 #include "chrome/browser/sync/api/syncable_service.h"
12 #include "chrome/browser/sync/internal_api/base_node.h" 12 #include "chrome/browser/sync/internal_api/base_node.h"
13 #include "chrome/browser/sync/internal_api/change_record.h" 13 #include "chrome/browser/sync/internal_api/change_record.h"
14 #include "chrome/browser/sync/internal_api/read_node.h" 14 #include "chrome/browser/sync/internal_api/read_node.h"
15 #include "chrome/browser/sync/internal_api/read_transaction.h" 15 #include "chrome/browser/sync/internal_api/read_transaction.h"
16 #include "chrome/browser/sync/internal_api/write_node.h" 16 #include "chrome/browser/sync/internal_api/write_node.h"
17 #include "chrome/browser/sync/internal_api/write_transaction.h" 17 #include "chrome/browser/sync/internal_api/write_transaction.h"
18 #include "chrome/browser/sync/unrecoverable_error_handler.h" 18 #include "chrome/browser/sync/unrecoverable_error_handler.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 20
21 using content::BrowserThread;
22
21 namespace browser_sync { 23 namespace browser_sync {
22 24
23 GenericChangeProcessor::GenericChangeProcessor( 25 GenericChangeProcessor::GenericChangeProcessor(
24 UnrecoverableErrorHandler* error_handler, 26 UnrecoverableErrorHandler* error_handler,
25 const base::WeakPtr<SyncableService>& local_service, 27 const base::WeakPtr<SyncableService>& local_service,
26 sync_api::UserShare* user_share) 28 sync_api::UserShare* user_share)
27 : ChangeProcessor(error_handler), 29 : ChangeProcessor(error_handler),
28 local_service_(local_service), 30 local_service_(local_service),
29 share_handle_(user_share) { 31 share_handle_(user_share) {
30 DCHECK(CalledOnValidThread()); 32 DCHECK(CalledOnValidThread());
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void GenericChangeProcessor::StopImpl() { 265 void GenericChangeProcessor::StopImpl() {
264 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 266 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
265 } 267 }
266 268
267 sync_api::UserShare* GenericChangeProcessor::share_handle() const { 269 sync_api::UserShare* GenericChangeProcessor::share_handle() const {
268 DCHECK(CalledOnValidThread()); 270 DCHECK(CalledOnValidThread());
269 return share_handle_; 271 return share_handle_;
270 } 272 }
271 273
272 } // namespace browser_sync 274 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc ('k') | chrome/browser/sync/glue/http_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698