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

Side by Side Diff: sync/internal_api/attachments/attachment_service_proxy_for_test.cc

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. Created 6 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 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/api/attachments/attachment_service_proxy_for_test.h" 5 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "sync/api/attachments/attachment_service_impl.h" 9 #include "sync/internal_api/public/attachments/attachment_service_impl.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 AttachmentServiceProxyForTest::OwningCore::OwningCore( 13 AttachmentServiceProxyForTest::OwningCore::OwningCore(
14 scoped_ptr<AttachmentService> wrapped, 14 scoped_ptr<AttachmentService> wrapped,
15 scoped_ptr<base::WeakPtrFactory<AttachmentService> > weak_ptr_factory) 15 scoped_ptr<base::WeakPtrFactory<AttachmentService> > weak_ptr_factory)
16 : Core(weak_ptr_factory->GetWeakPtr()), 16 : Core(weak_ptr_factory->GetWeakPtr()),
17 wrapped_(wrapped.Pass()), 17 wrapped_(wrapped.Pass()),
18 weak_ptr_factory_(weak_ptr_factory.Pass()) { 18 weak_ptr_factory_(weak_ptr_factory.Pass()) {
19 DCHECK(wrapped_); 19 DCHECK(wrapped_);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 AttachmentServiceProxyForTest::~AttachmentServiceProxyForTest() { 53 AttachmentServiceProxyForTest::~AttachmentServiceProxyForTest() {
54 } 54 }
55 55
56 AttachmentServiceProxyForTest::AttachmentServiceProxyForTest( 56 AttachmentServiceProxyForTest::AttachmentServiceProxyForTest(
57 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner, 57 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner,
58 const scoped_refptr<Core>& core) 58 const scoped_refptr<Core>& core)
59 : AttachmentServiceProxy(wrapped_task_runner, core) { 59 : AttachmentServiceProxy(wrapped_task_runner, core) {
60 } 60 }
61 61
62 } // namespace syncer 62 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698