Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "sync/test/engine/injectable_sync_context_proxy.h" | 5 #include "sync/test/engine/injectable_sync_context_proxy.h" |
| 6 | 6 |
| 7 #include "sync/engine/commit_queue.h" | 7 #include "sync/engine/commit_queue.h" |
| 8 #include "sync/engine/model_type_processor_impl.h" | |
| 9 #include "sync/internal_api/public/activation_context.h" | 8 #include "sync/internal_api/public/activation_context.h" |
| 9 #include "sync/internal_api/public/shared_model_type_processor.h" | |
|
stanisc
2015/10/05 18:11:35
This class will be deleted in my change.
maxbogue
2015/10/08 17:59:56
Acknowledged.
| |
| 10 | 10 |
| 11 namespace syncer_v2 { | 11 namespace syncer_v2 { |
| 12 | 12 |
| 13 InjectableSyncContextProxy::InjectableSyncContextProxy( | 13 InjectableSyncContextProxy::InjectableSyncContextProxy( |
| 14 CommitQueue* queue) | 14 CommitQueue* queue) |
| 15 : is_worker_connected_(false), queue_(queue) { | 15 : is_worker_connected_(false), queue_(queue) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 InjectableSyncContextProxy::~InjectableSyncContextProxy() { | 18 InjectableSyncContextProxy::~InjectableSyncContextProxy() { |
| 19 } | 19 } |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 40 scoped_ptr<SyncContextProxy> InjectableSyncContextProxy::Clone() const { | 40 scoped_ptr<SyncContextProxy> InjectableSyncContextProxy::Clone() const { |
| 41 // This confuses ownership. We trust that our callers are well-behaved. | 41 // This confuses ownership. We trust that our callers are well-behaved. |
| 42 return scoped_ptr<SyncContextProxy>(new InjectableSyncContextProxy(queue_)); | 42 return scoped_ptr<SyncContextProxy>(new InjectableSyncContextProxy(queue_)); |
| 43 } | 43 } |
| 44 | 44 |
| 45 CommitQueue* InjectableSyncContextProxy::GetQueue() { | 45 CommitQueue* InjectableSyncContextProxy::GetQueue() { |
| 46 return queue_; | 46 return queue_; |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace syncer | 49 } // namespace syncer |
| OLD | NEW |