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

Side by Side Diff: components/sync/core/attachments/attachment_service_impl.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_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_
6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ 6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "components/sync/api/attachments/attachment_store.h"
15 #include "components/sync/core/attachments/attachment_downloader.h"
16 #include "components/sync/core/attachments/attachment_service.h"
17 #include "components/sync/core/attachments/attachment_service_proxy.h"
18 #include "components/sync/core/attachments/attachment_uploader.h"
19 #include "components/sync/core/attachments/task_queue.h"
14 #include "net/base/network_change_notifier.h" 20 #include "net/base/network_change_notifier.h"
15 #include "sync/api/attachments/attachment_store.h"
16 #include "sync/internal_api/public/attachments/attachment_downloader.h"
17 #include "sync/internal_api/public/attachments/attachment_service.h"
18 #include "sync/internal_api/public/attachments/attachment_service_proxy.h"
19 #include "sync/internal_api/public/attachments/attachment_uploader.h"
20 #include "sync/internal_api/public/attachments/task_queue.h"
21 21
22 namespace syncer { 22 namespace syncer {
23 23
24 // Implementation of AttachmentService. 24 // Implementation of AttachmentService.
25 class SYNC_EXPORT AttachmentServiceImpl 25 class SYNC_EXPORT AttachmentServiceImpl
26 : public AttachmentService, 26 : public AttachmentService,
27 public net::NetworkChangeNotifier::NetworkChangeObserver, 27 public net::NetworkChangeNotifier::NetworkChangeObserver,
28 public base::NonThreadSafe { 28 public base::NonThreadSafe {
29 public: 29 public:
30 // |attachment_store| is required. UploadAttachments reads attachment data 30 // |attachment_store| is required. UploadAttachments reads attachment data
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 std::unique_ptr<TaskQueue<AttachmentId>> upload_task_queue_; 113 std::unique_ptr<TaskQueue<AttachmentId>> upload_task_queue_;
114 114
115 // Must be last data member. 115 // Must be last data member.
116 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_; 116 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl); 118 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl);
119 }; 119 };
120 120
121 } // namespace syncer 121 } // namespace syncer
122 122
123 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ 123 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/core/attachments/attachment_service.h ('k') | components/sync/core/attachments/attachment_service_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698