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

Side by Side Diff: chrome/browser/sync/glue/bridged_invalidator.h

Issue 10874096: [Sync] Rework Invalidator-related unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync/glue/bridged_invalidator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "sync/notifier/invalidator.h" 10 #include "sync/notifier/invalidator.h"
(...skipping 21 matching lines...) Expand all
32 // also be forwarded to the bridge. 32 // also be forwarded to the bridge.
33 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; 33 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE;
34 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler, 34 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler,
35 const syncer::ObjectIdSet& ids) OVERRIDE; 35 const syncer::ObjectIdSet& ids) OVERRIDE;
36 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; 36 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE;
37 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 37 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
38 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; 38 virtual void SetStateDeprecated(const std::string& state) OVERRIDE;
39 virtual void UpdateCredentials( 39 virtual void UpdateCredentials(
40 const std::string& email, const std::string& token) OVERRIDE; 40 const std::string& email, const std::string& token) OVERRIDE;
41 virtual void SendNotification( 41 virtual void SendNotification(
42 syncer::ModelTypeSet changed_types) OVERRIDE; 42 const syncer::ObjectIdStateMap& id_state_map) OVERRIDE;
43 43
44 private: 44 private:
45 // The notification bridge that we register the observers with. 45 // The notification bridge that we register the observers with.
46 ChromeSyncNotificationBridge* bridge_; 46 ChromeSyncNotificationBridge* bridge_;
47 47
48 // The delegate we are wrapping. 48 // The delegate we are wrapping.
49 scoped_ptr<syncer::Invalidator> delegate_; 49 scoped_ptr<syncer::Invalidator> delegate_;
50 }; 50 };
51 51
52 } // namespace browser_sync 52 } // namespace browser_sync
53 53
54 #endif // CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_ 54 #endif // CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/glue/bridged_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698