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

Side by Side Diff: chrome/browser/sync/glue/ui_model_worker.h

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_SYNC_GLUE_UI_MODEL_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/synchronization/condition_variable.h" 10 #include "base/synchronization/condition_variable.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "sync/internal_api/public/engine/model_safe_worker.h" 12 #include "sync/internal_api/public/engine/model_safe_worker.h"
13 #include "sync/internal_api/public/util/unrecoverable_error_info.h" 13 #include "sync/internal_api/public/util/unrecoverable_error_info.h"
14 14
15 class MessageLoop;
16
17 namespace browser_sync { 15 namespace browser_sync {
18 16
19 // A syncer::ModelSafeWorker for UI models (e.g. bookmarks) that 17 // A syncer::ModelSafeWorker for UI models (e.g. bookmarks) that
20 // accepts work requests from the syncapi that need to be fulfilled 18 // accepts work requests from the syncapi that need to be fulfilled
21 // from the MessageLoop home to the native model. 19 // from the MessageLoop home to the native model.
22 // 20 //
23 // Lifetime note: Instances of this class will generally be owned by the 21 // Lifetime note: Instances of this class will generally be owned by the
24 // SyncerThread. When the SyncerThread _object_ is destroyed, the 22 // SyncerThread. When the SyncerThread _object_ is destroyed, the
25 // UIModelWorker will be destroyed. The SyncerThread object is destroyed 23 // UIModelWorker will be destroyed. The SyncerThread object is destroyed
26 // after the actual syncer pthread has exited. 24 // after the actual syncer pthread has exited.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // SyncerThread has terminated. We only care about (1) when we are in Stop(), 93 // SyncerThread has terminated. We only care about (1) when we are in Stop(),
96 // because we have to manually Run() the task. 94 // because we have to manually Run() the task.
97 base::ConditionVariable syncapi_event_; 95 base::ConditionVariable syncapi_event_;
98 96
99 DISALLOW_COPY_AND_ASSIGN(UIModelWorker); 97 DISALLOW_COPY_AND_ASSIGN(UIModelWorker);
100 }; 98 };
101 99
102 } // namespace browser_sync 100 } // namespace browser_sync
103 101
104 #endif // CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_ 102 #endif // CHROME_BROWSER_SYNC_GLUE_UI_MODEL_WORKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/typed_url_model_associator.h ('k') | chrome/browser/ui/views/sync/one_click_signin_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698