summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/sessions/sync_session_context.cc
Commit message (Collapse)AuthorAgeFilesLines
* [Sync] Rename ModelEnumSet to ModelTypeSetakalin@chromium.org2011-12-131-4/+4
| | | | | | | | | | | | | | | Now that the old ModelTypeSet and ModelTypeBitSet are gone, we can rename ModelEnumSet to ModelTypeSet. Conveniently, they're the same number of characters, so this is just a straight rename. Command: git grep -l ModelEnumSet | xargs sed -i '' -e 's/ModelEnumSet/ModelTypeSet/g' BUG=79970 TEST= Review URL: http://codereview.chromium.org/8919021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114149 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Replace all instances of ModelTypeSet with ModelEnumSetakalin@chromium.org2011-12-101-8/+7
| | | | | | | | | | | | | Also change some functions to return ModelEnumSets directly instead of taking a pointer value. BUG=79970 TEST= Review URL: http://codereview.chromium.org/8851006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113906 0039d316-1c4b-4281-b951-d872f2087c98
* This is the second and final patch of changes for implementing the per ↵lipalani@chromium.org2011-11-241-0/+27
| | | | | | | | | | | | | | datatype throttling feature. Includes the tests. This consumes the throttled datatypes set in the context and uses that to filter the unsynced handles that we use for committing. BUG=104819 TEST=unit_tests.exe, sync_unit_tests.exe, sync_integration_tests.exe, manual test cases Review URL: http://codereview.chromium.org/8631021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111464 0039d316-1c4b-4281-b951-d872f2087c98
* Parse and Store the throttled datatypes and the unthrottling time, which is ↵lipalani@chromium.org2011-11-231-0/+17
| | | | | | | | | | | | | | obtained from the server response, in the sync_session_context. This is the first patch for per datatype throttling feature. The next patch would consume this data to decide what items to commit. BUG=104819 TEST=sync_unit_tests.exe, sync_integration_tests.exe, unit_tests.exe Review URL: http://codereview.chromium.org/8595023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111408 0039d316-1c4b-4281-b951-d872f2087c98
* Move BrowserThread to content namespace.joi@chromium.org2011-11-021-0/+2
| | | | | | | | | TBR=owners BUG=98716 Review URL: http://codereview.chromium.org/8437002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108270 0039d316-1c4b-4281-b951-d872f2087c98
* Split BrowserThread into public API and private implementation, step 1.joi@chromium.org2011-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | | Only content/ now has the ability to create BrowserThread objects, with the exception that tests can create the content::TestBrowserThread subclass, and (temporarily) code in chrome/ can create the DeprecatedBrowserThread subclass. A follow-up change will make content/ take care of its own thread creation, remove DeprecatedBrowserThread, and move all state and non-trivial constructors from BrowserThread down to BrowserThreadImpl. Also moved BrowserProcessSubThread into content/ namespace. As part of follow-up cleanup, chrome/ will stop using this class. BUG=98716 TEST=existing Review URL: http://codereview.chromium.org/8392042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107718 0039d316-1c4b-4281-b951-d872f2087c98
* Send important client side event information to the server. We create a ↵lipalani@chromium.org2011-10-151-2/+5
| | | | | | | | | | | | | | | | | | | | 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
* Revert 105667 - Send important client side event information to the server. ↵lipalani@chromium.org2011-10-151-5/+2
| | | | | | | | | | | | | | | | | | | 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. BUG=100058 TEST= Review URL: http://codereview.chromium.org/8189003 TBR=lipalani@chromium.org Review URL: http://codereview.chromium.org/8313002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105680 0039d316-1c4b-4281-b951-d872f2087c98
* Send important client side event information to the server. We create a ↵lipalani@chromium.org2011-10-151-2/+5
| | | | | | | | | | | | | | | | 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. BUG=100058 TEST= Review URL: http://codereview.chromium.org/8189003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105667 0039d316-1c4b-4281-b951-d872f2087c98
* make new syncer thread the default. Fixed all the test cases that failed.lipalani@chromium.org2011-04-191-6/+1
| | | | | | | | | | | | | | | | | BUG=26339 TEST=unit_tests.exe, sync_integration_tests.exe, sync_unit_tests.exe. manual testcases: 1. Set up a brand new profile to sync and make sure it syncs. 2. enable/disable a datatype and make sure it syncs. 3. Make change to a datatype locally and make sure it gets propagated. 4. make change to a datatype remotely and make sure it syncs down. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82026 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82067 Review URL: http://codereview.chromium.org/6874018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82150 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 82067 - make new syncer thread the default. Fixed all the test cases ↵lipalani@chromium.org2011-04-191-1/+6
| | | | | | | | | that failed.BUG=26339TEST=unit_tests.exe, sync_integration_tests.exe, sync_unit_tests.exe. manual testcases:1. Set up a brand new profile to sync and make sure it syncs.2. enable/disable a datatype and make sure it syncs.3. Make change to a datatype locally and make sure it gets propagated.4. make change to a datatype remotely and make sure it syncs down.Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82026Review URL: http://codereview.chromium.org/6874018 TBR=lipalani@chromium.org Review URL: http://codereview.chromium.org/6883037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82073 0039d316-1c4b-4281-b951-d872f2087c98
* make new syncer thread the default. Fixed all the test cases that failed.lipalani@chromium.org2011-04-191-6/+1
| | | | | | | | | | | | | | | BUG=26339 TEST=unit_tests.exe, sync_integration_tests.exe, sync_unit_tests.exe. manual testcases: 1. Set up a brand new profile to sync and make sure it syncs. 2. enable/disable a datatype and make sure it syncs. 3. Make change to a datatype locally and make sure it gets propagated. 4. make change to a datatype remotely and make sure it syncs down. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82026 Review URL: http://codereview.chromium.org/6874018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82067 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 82026 - make new syncer thread the default. Fixed all the test cases ↵lipalani@chromium.org2011-04-191-1/+6
| | | | | | | | | that failed.BUG=26339TEST=unit_tests.exe, sync_integration_tests.exe, sync_unit_tests.exe. manual testcases:1. Set up a brand new profile to sync and make sure it syncs.2. enable/disable a datatype and make sure it syncs.3. Make change to a datatype locally and make sure it gets propagated.4. make change to a datatype remotely and make sure it syncs down.Review URL: http://codereview.chromium.org/6874018 TBR=lipalani@chromium.org Review URL: http://codereview.chromium.org/6877027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82040 0039d316-1c4b-4281-b951-d872f2087c98
* make new syncer thread the default. Fixed all the test cases that failed.lipalani@chromium.org2011-04-181-6/+1
| | | | | | | | | | | | | BUG=26339 TEST=unit_tests.exe, sync_integration_tests.exe, sync_unit_tests.exe. manual testcases: 1. Set up a brand new profile to sync and make sure it syncs. 2. enable/disable a datatype and make sure it syncs. 3. Make change to a datatype locally and make sure it gets propagated. 4. make change to a datatype remotely and make sure it syncs down. Review URL: http://codereview.chromium.org/6874018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82026 0039d316-1c4b-4281-b951-d872f2087c98
* Update a bunch of files to the new location of browser_thread.h jam@chromium.org2011-03-011-1/+1
| | | | | | | TBR=avi Review URL: http://codereview.chromium.org/6591066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76390 0039d316-1c4b-4281-b951-d872f2087c98
* sync: tiny cleanup in syncer.h/cctim@chromium.org2011-02-011-1/+2
| | | | | | | | | | | Moves last bit of state from syncer to the sync session context, which is where we store state we want to carry over between sessions. BUG=none TEST=syncer_unittest Review URL: http://codereview.chromium.org/6349030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73355 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ChromeThread to BrowserThread Part22:tfarina@chromium.org2010-10-121-1/+1
| | | | | | | | | | | | | | | | - Include browser_thread instead of chrome_thread in more 97 files. Now the remaining files that are including chrome_thread.h are: chrome_thread.cc and browser_thread.h. They will be fixed next. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3717004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62312 0039d316-1c4b-4281-b951-d872f2087c98
* sync: use ObserverList instead of EventChannel (deprecated) for syncer events.tim@chromium.org2010-10-111-2/+5
| | | | | | | | | | | | | | | Remove the relay_channel and syncer_event_channel in favor of having listeners live on the SyncSessionContext and be notified directly. Remove some unnecessary event types and variables. BUG=26339 TEST=sync_unit_tests Review URL: http://codereview.chromium.org/3538011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62187 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ChromeThread to BrowserThread Part5:tfarina@chromium.org2010-10-081-1/+1
| | | | | | | | | | | - Rename entries under sync. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3538015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61907 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply r61237: FBTF: Another big ctor/dtor cleanup found by automated tools.erg@google.com2010-10-041-0/+41
| | | | | | | | | | | | | | | Removes changes to code in webkit/ that broke chrome_frame. Will debug that portion later. (Shaves ~2MB off Linux Debug .a files) BUG=none TEST=compiles First Review URL: http://codereview.chromium.org/3563004 Review URL: http://codereview.chromium.org/3621003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61435 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "FBTF: Another big ctor/dtor cleanup found by automated tools."erg@google.com2010-10-011-41/+0
| | | | | | | | | | | This reverts commit 27ea47d65cf8767f350113d5ad9e25170efde811 (r61237). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3609005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61240 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Another big ctor/dtor cleanup found by automated tools.erg@google.com2010-10-011-0/+41
(Shaves ~2MB off Linux Debug .a files) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3563004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61237 0039d316-1c4b-4281-b951-d872f2087c98