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

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

Issue 2781863004: [Sync] Implement EstimateMemoryUsage for SharedModelTypeProcessor and ModelTypeWorker (Closed)
Patch Set: Address comments Created 3 years, 8 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 COMPONENTS_SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_
6 #define COMPONENTS_SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ 6 #define COMPONENTS_SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 EntityDataPtr entity; 53 EntityDataPtr entity;
54 54
55 int64_t response_version = 0; 55 int64_t response_version = 0;
56 std::string encryption_key_name; 56 std::string encryption_key_name;
57 }; 57 };
58 58
59 using CommitRequestDataList = std::vector<CommitRequestData>; 59 using CommitRequestDataList = std::vector<CommitRequestData>;
60 using CommitResponseDataList = std::vector<CommitResponseData>; 60 using CommitResponseDataList = std::vector<CommitResponseData>;
61 using UpdateResponseDataList = std::vector<UpdateResponseData>; 61 using UpdateResponseDataList = std::vector<UpdateResponseData>;
62 62
63 // Returns the estimate of dynamically allocated memory in bytes.
64 size_t EstimateMemoryUsage(const CommitRequestData& value);
65 size_t EstimateMemoryUsage(const UpdateResponseData& value);
66
63 } // namespace syncer 67 } // namespace syncer
64 68
65 #endif // COMPONENTS_SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ 69 #endif // COMPONENTS_SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_
OLDNEW
« no previous file with comments | « components/sync/base/proto_value_ptr.h ('k') | components/sync/engine/non_blocking_sync_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698