OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AttachmentService
(Results
1 - 25
of
28
) sorted by null
1
2
/external/chromium_org/sync/api/attachments/
attachment_service.cc
9
AttachmentService
::
AttachmentService
() {}
10
AttachmentService
::~
AttachmentService
() {}
attachment_service_proxy_for_test.h
17
// Constructs and owns an
AttachmentService
suitable for use in tests.
27
// A Core that owns the wrapped
AttachmentService
.
31
scoped_ptr<
AttachmentService
>,
32
scoped_ptr<base::WeakPtrFactory<
AttachmentService
> > weak_ptr_factory);
35
scoped_ptr<
AttachmentService
> wrapped_;
37
scoped_ptr<base::WeakPtrFactory<
AttachmentService
> > weak_ptr_factory_;
attachment_service_proxy.cc
22
const
AttachmentService
::GetOrDownloadCallback& callback,
23
const
AttachmentService
::GetOrDownloadResult& result,
33
const
AttachmentService
::DropCallback& callback,
34
const
AttachmentService
::DropResult& result) {
42
const
AttachmentService
::StoreCallback& callback,
43
const
AttachmentService
::StoreResult& result) {
54
const base::WeakPtr<syncer::
AttachmentService
>& wrapped)
78
base::Bind(&
AttachmentService
::GetOrDownloadAttachments,
91
base::Bind(&
AttachmentService
::DropAttachments,
104
base::Bind(&
AttachmentService
::StoreAttachments
[
all
...]
attachment_service_proxy.h
22
// AttachmentServiceProxy wraps an
AttachmentService
allowing multiple threads
23
// to share the wrapped
AttachmentService
and invoke its methods in the
29
// This class does not own its wrapped
AttachmentService
object. This class
37
class SYNC_EXPORT AttachmentServiceProxy : public
AttachmentService
{
51
const base::WeakPtr<syncer::
AttachmentService
>& wrapped);
55
//
AttachmentService
implementation.
68
// Core does the work of proxying calls to
AttachmentService
methods from one
72
// Callback from
AttachmentService
are proxied back using free functions
77
// (e.g. one type of core might own the wrapped
AttachmentService
).
81
class SYNC_EXPORT Core : public
AttachmentService
,
[
all
...]
attachment_service_proxy_for_test.cc
14
scoped_ptr<
AttachmentService
> wrapped,
15
scoped_ptr<base::WeakPtrFactory<
AttachmentService
> > weak_ptr_factory)
27
scoped_ptr<
AttachmentService
> wrapped(AttachmentServiceImpl::CreateForTest());
29
// WeakPtr to an
AttachmentService
. Because the base class ctor must be
35
scoped_ptr<base::WeakPtrFactory<
AttachmentService
> > weak_ptr_factory(
36
new base::WeakPtrFactory<
AttachmentService
>(wrapped.get()));
attachment_service.h
19
//
AttachmentService
is responsible for managing a model type's attachments.
21
// Outside of sync code,
AttachmentService
shouldn't be used directly. Instead
26
class SYNC_EXPORT
AttachmentService
{
58
// events that originate from
AttachmentService
.
59
// This interface will be called from the same thread
AttachmentService
was
70
AttachmentService
();
71
virtual ~
AttachmentService
();
attachment_service_proxy_unittest.cc
25
// A stub implementation of
AttachmentService
that counts the number of times
27
class StubAttachmentService : public
AttachmentService
,
47
AttachmentService
::GET_UNSPECIFIED_ERROR,
56
FROM_HERE, base::Bind(callback,
AttachmentService
::DROP_SUCCESS));
64
FROM_HERE, base::Bind(callback,
AttachmentService
::STORE_SUCCESS));
78
virtual base::WeakPtr<
AttachmentService
> AsWeakPtr() {
94
base::WeakPtrFactory<
AttachmentService
> weak_ptr_factory_;
144
void IncrementGetOrDownload(const
AttachmentService
::GetOrDownloadResult&,
151
void IncrementDrop(const
AttachmentService
::DropResult&) {
157
void IncrementStore(const
AttachmentService
::StoreResult&)
[
all
...]
attachment_service_impl.cc
24
//
AttachmentService
::GetOrDownloadAttachments.
129
scoped_ptr<syncer::
AttachmentService
> AttachmentServiceImpl::CreateForTest() {
136
scoped_ptr<syncer::
AttachmentService
> attachment_service(
228
AttachmentService
::DropResult drop_result =
229
AttachmentService
::DROP_UNSPECIFIED_ERROR;
231
drop_result =
AttachmentService
::DROP_SUCCESS;
240
AttachmentService
::StoreResult store_result =
241
AttachmentService
::STORE_UNSPECIFIED_ERROR;
243
store_result =
AttachmentService
::STORE_SUCCESS;
attachment_service_impl.h
19
// Implementation of
AttachmentService
.
20
class SYNC_EXPORT AttachmentServiceImpl : public
AttachmentService
,
23
// |delegate| is optional delegate for
AttachmentService
to notify about
25
// provided.
AttachmentService
doesn't take ownership of delegate, the pointer
26
// must be valid throughout
AttachmentService
lifetime.
34
static scoped_ptr<syncer::
AttachmentService
> CreateForTest();
36
//
AttachmentService
implementation.
attachment_service_impl_unittest.cc
136
AttachmentService
* attachment_service() { return attachment_service_.get(); }
138
AttachmentService
::GetOrDownloadCallback download_callback() {
143
void DownloadDone(const
AttachmentService
::GetOrDownloadResult& result,
154
const std::vector<
AttachmentService
::GetOrDownloadResult>&
173
scoped_ptr<
AttachmentService
> attachment_service_;
175
std::vector<
AttachmentService
::GetOrDownloadResult> download_results_;
/packages/apps/Email/tests/src/com/android/email/service/
AttachmentServiceTests.java
31
* Tests of the
AttachmentService
40
final
AttachmentService
.DownloadRequest dr =
41
new
AttachmentService
.DownloadRequest(
AttachmentService
.PRIORITY_FOREGROUND, 1);
42
final
AttachmentService
.DownloadRequest dr2 =
43
new
AttachmentService
.DownloadRequest(
AttachmentService
.PRIORITY_FOREGROUND, 2);
49
final
AttachmentService
.DownloadQueue dq = new
AttachmentService
.DownloadQueue();
55
final
AttachmentService
.DownloadQueue dq = new AttachmentService.DownloadQueue()
[
all
...]
/external/chromium_org/components/sync_driver/
sync_api_component_factory.h
30
// |delegate| is optional delegate for
AttachmentService
to notify about
32
// provided.
AttachmentService
doesn't take ownership of delegate, the pointer
33
// must be valid throughout
AttachmentService
lifetime.
34
virtual scoped_ptr<syncer::
AttachmentService
> CreateAttachmentService(
35
syncer::
AttachmentService
::Delegate* delegate) = 0;
generic_change_processor_factory.h
11
class
AttachmentService
;
generic_change_processor.h
43
public syncer::
AttachmentService
::Delegate,
76
// syncer::
AttachmentService
::Delegate implementation.
151
scoped_ptr<syncer::
AttachmentService
> attachment_service_;
154
base::WeakPtrFactory<syncer::
AttachmentService
>
shared_change_processor_unittest.cc
46
virtual scoped_ptr<syncer::
AttachmentService
> CreateAttachmentService(
47
syncer::
AttachmentService
::Delegate* delegate) OVERRIDE {
generic_change_processor_unittest.cc
79
scoped_ptr<syncer::
AttachmentService
> attachment_service)
89
virtual scoped_ptr<syncer::
AttachmentService
> CreateAttachmentService(
90
syncer::
AttachmentService
::Delegate* delegate) OVERRIDE {
96
scoped_ptr<syncer::
AttachmentService
> attachment_service_;
121
// GenericChangeProcessor takes ownership of the
AttachmentService
, but we
127
mock_attachment_service.PassAs<syncer::
AttachmentService
>()));
327
//
AttachmentService
.
352
// Check that the
AttachmentService
received the new attachments.
373
// Check that the
AttachmentService
received it.
ui_data_type_controller_unittest.cc
61
virtual scoped_ptr<syncer::
AttachmentService
> CreateAttachmentService(
62
syncer::
AttachmentService
::Delegate* delegate) OVERRIDE {
/external/chromium_org/chrome/browser/sync/
profile_sync_components_factory_mock.cc
32
scoped_ptr<syncer::
AttachmentService
>
34
syncer::
AttachmentService
::Delegate* delegate) {
profile_sync_components_factory_mock.h
49
virtual scoped_ptr<syncer::
AttachmentService
> CreateAttachmentService(
50
syncer::
AttachmentService
::Delegate* delegate) OVERRIDE;
profile_sync_components_factory_impl.h
72
virtual scoped_ptr<syncer::
AttachmentService
> CreateAttachmentService(
73
syncer::
AttachmentService
::Delegate* delegate) OVERRIDE;
/external/chromium_org/sync/api/
sync_data.h
31
class
AttachmentService
;
198
const
AttachmentService
::GetOrDownloadCallback& callback);
207
const
AttachmentService
::DropCallback& callback);
sync_data_unittest.cc
42
scoped_ptr<
AttachmentService
> attachment_service;
43
base::WeakPtrFactory<
AttachmentService
> attachment_service_weak_ptr_factory;
124
// DropAttachments calls are passed through to the underlying
AttachmentService
.
sync_data.cc
243
const
AttachmentService
::GetOrDownloadCallback& callback) {
249
const
AttachmentService
::DropCallback& callback) {
/packages/apps/Email/src/com/android/email2/ui/
MailActivityEmail.java
33
import com.android.email.service.
AttachmentService
;
129
new ComponentName(context,
AttachmentService
.class),
135
// TODO: Make sure that the
AttachmentService
responds to this request as it
137
startOrStopService(enabled, context, new Intent(context,
AttachmentService
.class));
/packages/apps/Email/src/com/android/email/service/
AttachmentService.java
63
public class
AttachmentService
extends Service implements Runnable {
65
public static final String LOG_TAG = "
AttachmentService
";
108
"com.android.email.
AttachmentService
.attachment_id";
110
"com.android.email.
AttachmentService
.attachment_flags";
118
static volatile
AttachmentService
sRunningService = null;
430
// TODO: Really don't like hard coding the
AttachmentService
reference here
433
// static (or test)
AttachmentService
instance to use.
434
final
AttachmentService
service =
AttachmentService
.sRunningService;
444
}, "
AttachmentService
AttachmentWatchdog").start()
[
all
...]
Completed in 189 milliseconds
1
2