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

Side by Side Diff: components/sync/engine/sync_manager.h

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Created 4 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 #include "components/sync/engine/net/http_post_provider_factory.h" 28 #include "components/sync/engine/net/http_post_provider_factory.h"
29 #include "components/sync/engine/shutdown_reason.h" 29 #include "components/sync/engine/shutdown_reason.h"
30 #include "components/sync/engine/sync_encryption_handler.h" 30 #include "components/sync/engine/sync_encryption_handler.h"
31 #include "components/sync/engine/sync_status.h" 31 #include "components/sync/engine/sync_status.h"
32 #include "components/sync/protocol/sync_protocol_error.h" 32 #include "components/sync/protocol/sync_protocol_error.h"
33 #include "components/sync/syncable/change_record.h" 33 #include "components/sync/syncable/change_record.h"
34 #include "google_apis/gaia/oauth2_token_service.h" 34 #include "google_apis/gaia/oauth2_token_service.h"
35 35
36 class GURL; 36 class GURL;
37 37
38 namespace base {
39 namespace trace_event {
40 class ProcessMemoryDump;
41 } // namespace trace_event
42 } // namespace base
43
38 namespace sync_pb { 44 namespace sync_pb {
39 class EncryptedData; 45 class EncryptedData;
40 } // namespace sync_pb 46 } // namespace sync_pb
41 47
42 namespace syncer { 48 namespace syncer {
43 49
44 class BaseTransaction; 50 class BaseTransaction;
45 class CancelationSignal; 51 class CancelationSignal;
46 class DataTypeDebugInfoListener; 52 class DataTypeDebugInfoListener;
47 class Encryptor; 53 class Encryptor;
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // 394 //
389 // This is an asynchronous operation that requires interaction with the sync 395 // This is an asynchronous operation that requires interaction with the sync
390 // server. The operation will automatically be retried with backoff until it 396 // server. The operation will automatically be retried with backoff until it
391 // completes successfully or sync is shutdown. 397 // completes successfully or sync is shutdown.
392 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0; 398 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0;
393 399
394 // Updates Sync's tracking of whether the cookie jar has a mismatch with the 400 // Updates Sync's tracking of whether the cookie jar has a mismatch with the
395 // chrome account. See ClientConfigParams proto message for more info. 401 // chrome account. See ClientConfigParams proto message for more info.
396 // Note: this does not trigger a sync cycle. It just updates the sync context. 402 // Note: this does not trigger a sync cycle. It just updates the sync context.
397 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 403 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
404
405 // Adds memory usage statistics to |pmd| for chrome://tracing.
406 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) = 0;
398 }; 407 };
399 408
400 } // namespace syncer 409 } // namespace syncer
401 410
402 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 411 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698