| OLD | NEW |
| 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 Loading... |
| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // | 399 // |
| 394 // This is an asynchronous operation that requires interaction with the sync | 400 // This is an asynchronous operation that requires interaction with the sync |
| 395 // server. The operation will automatically be retried with backoff until it | 401 // server. The operation will automatically be retried with backoff until it |
| 396 // completes successfully or sync is shutdown. | 402 // completes successfully or sync is shutdown. |
| 397 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0; | 403 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0; |
| 398 | 404 |
| 399 // Updates Sync's tracking of whether the cookie jar has a mismatch with the | 405 // Updates Sync's tracking of whether the cookie jar has a mismatch with the |
| 400 // chrome account. See ClientConfigParams proto message for more info. | 406 // chrome account. See ClientConfigParams proto message for more info. |
| 401 // Note: this does not trigger a sync cycle. It just updates the sync context. | 407 // Note: this does not trigger a sync cycle. It just updates the sync context. |
| 402 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 408 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
| 409 |
| 410 // Adds memory usage statistics to |pmd| for chrome://tracing. |
| 411 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) = 0; |
| 403 }; | 412 }; |
| 404 | 413 |
| 405 } // namespace syncer | 414 } // namespace syncer |
| 406 | 415 |
| 407 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ | 416 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ |
| OLD | NEW |