diff options
author | lipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 20:19:06 +0000 |
---|---|---|
committer | lipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 20:19:06 +0000 |
commit | abd6c1843fb4d5360993ae81b7b9498228dfebce (patch) | |
tree | cc0cfd5a3f29cef17ee34774d1f4902f0e6be637 /chrome/chrome.gyp | |
parent | d966eca9b89dabefffca5094d868bf728e1d9ce1 (diff) | |
download | chromium_src-abd6c1843fb4d5360993ae81b7b9498228dfebce.zip chromium_src-abd6c1843fb4d5360993ae81b7b9498228dfebce.tar.gz chromium_src-abd6c1843fb4d5360993ae81b7b9498228dfebce.tar.bz2 |
Send important client side event information to the server. We create a class called DebugInfoEventListener which implements 2 interfaces. one being the syncmanager::observer to observe events from syncmanager.
The other being DebugInfoGetter so that syncer can call this class to give the debug information in protobuf format.
The implementation of this class uses a queue. And it limits the number of events to 6. if more than 6 events are in the queue we delete the oldest event.
Also we send this information to the server only once per sync cycle during the first getudpdates command.
also includes the unit test.
TBR=cmp@chromium.org for the SI relaxation.
BUG=100058
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105667
Review URL: http://codereview.chromium.org/8189003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index e9a90e2..1901409 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -493,6 +493,8 @@ 'browser/sync/internal_api/change_reorder_buffer.cc', 'browser/sync/internal_api/change_reorder_buffer.h', 'browser/sync/internal_api/configure_reason.h', + 'browser/sync/internal_api/debug_info_event_listener.cc', + 'browser/sync/internal_api/debug_info_event_listener.h', 'browser/sync/internal_api/http_post_provider_factory.h', 'browser/sync/internal_api/http_post_provider_interface.h', 'browser/sync/internal_api/read_node.cc', @@ -657,6 +659,7 @@ 'browser/sync/protocol/service_constants.h', 'browser/sync/protocol/sync_protocol_error.cc', 'browser/sync/protocol/sync_protocol_error.h', + 'browser/sync/sessions/debug_info_getter.h', 'browser/sync/sessions/ordered_commit_set.cc', 'browser/sync/sessions/ordered_commit_set.h', 'browser/sync/sessions/session_state.cc', |