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

Side by Side Diff: components/sync/core/attachments/attachment_service_proxy.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
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 #ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ 5 #ifndef COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_
6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ 6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "base/task_runner.h" 12 #include "base/task_runner.h"
13 #include "sync/api/attachments/attachment.h" 13 #include "components/sync/api/attachments/attachment.h"
14 #include "sync/base/sync_export.h" 14 #include "components/sync/base/sync_export.h"
15 #include "sync/internal_api/public/attachments/attachment_service.h" 15 #include "components/sync/core/attachments/attachment_service.h"
16 16
17 namespace syncer { 17 namespace syncer {
18 18
19 // AttachmentServiceProxy wraps an AttachmentService allowing multiple threads 19 // AttachmentServiceProxy wraps an AttachmentService allowing multiple threads
20 // to share the wrapped AttachmentService and invoke its methods in the 20 // to share the wrapped AttachmentService and invoke its methods in the
21 // appropriate thread. 21 // appropriate thread.
22 // 22 //
23 // Callbacks passed to methods on this class will be invoked in the same thread 23 // Callbacks passed to methods on this class will be invoked in the same thread
24 // from which the method was called. 24 // from which the method was called.
25 // 25 //
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner, 97 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner,
98 const scoped_refptr<Core>& core); 98 const scoped_refptr<Core>& core);
99 99
100 private: 100 private:
101 scoped_refptr<base::SequencedTaskRunner> wrapped_task_runner_; 101 scoped_refptr<base::SequencedTaskRunner> wrapped_task_runner_;
102 scoped_refptr<Core> core_; 102 scoped_refptr<Core> core_;
103 }; 103 };
104 104
105 } // namespace syncer 105 } // namespace syncer
106 106
107 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ 107 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698