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

Side by Side Diff: chrome/browser/sync/test/integration/fake_server_invalidation_service.h

Issue 296743005: sync: Implement fake server reflection blocking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/test/integration/fake_server_invalidation_service.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 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 CHROME_BROWSER_SYNC_TEST_INTEGRATION_FAKE_SERVER_INVALIDATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_FAKE_SERVER_INVALIDATION_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_FAKE_SERVER_INVALIDATION_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_FAKE_SERVER_INVALIDATION_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void UnregisterInvalidationHandler( 43 virtual void UnregisterInvalidationHandler(
44 syncer::InvalidationHandler* handler) OVERRIDE; 44 syncer::InvalidationHandler* handler) OVERRIDE;
45 45
46 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; 46 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
47 virtual std::string GetInvalidatorClientId() const OVERRIDE; 47 virtual std::string GetInvalidatorClientId() const OVERRIDE;
48 virtual invalidation::InvalidationLogger* GetInvalidationLogger() OVERRIDE; 48 virtual invalidation::InvalidationLogger* GetInvalidationLogger() OVERRIDE;
49 virtual void RequestDetailedStatus( 49 virtual void RequestDetailedStatus(
50 base::Callback<void(const base::DictionaryValue&)> caller) const OVERRIDE; 50 base::Callback<void(const base::DictionaryValue&)> caller) const OVERRIDE;
51 virtual IdentityProvider* GetIdentityProvider() OVERRIDE; 51 virtual IdentityProvider* GetIdentityProvider() OVERRIDE;
52 52
53 // When true, this flag enables the sending of notifications to all clients,
54 // including the one responsible for the commit.
55 void SetSelfNotificationsEnabled(bool enabled);
pval...(no longer on Chromium) 2014/05/21 17:37:03 How about two methods: EnableSelfNotifications() a
rlarocque 2014/05/21 17:50:36 Yes, I was mainly concerned about the call site wh
pval...(no longer on Chromium) 2014/05/21 19:46:58 separate methods sgtm
56
53 // FakeServer::Observer: 57 // FakeServer::Observer:
54 virtual void OnCommit(syncer::ModelTypeSet committed_model_types) OVERRIDE; 58 virtual void OnCommit(
59 const std::string& committer_id,
60 syncer::ModelTypeSet committed_model_types) OVERRIDE;
55 61
56 private: 62 private:
57 std::string client_id_; 63 std::string client_id_;
64 bool self_notify_;
65
58 syncer::InvalidatorRegistrar invalidator_registrar_; 66 syncer::InvalidatorRegistrar invalidator_registrar_;
59 FakeProfileOAuth2TokenService token_service_; 67 FakeProfileOAuth2TokenService token_service_;
60 FakeIdentityProvider identity_provider_; 68 FakeIdentityProvider identity_provider_;
61 69
62 DISALLOW_COPY_AND_ASSIGN(FakeServerInvalidationService); 70 DISALLOW_COPY_AND_ASSIGN(FakeServerInvalidationService);
63 }; 71 };
64 72
65 } // namespace fake_server 73 } // namespace fake_server
66 74
67 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_FAKE_SERVER_INVALIDATION_SERVICE _H_ 75 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_FAKE_SERVER_INVALIDATION_SERVICE _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/fake_server_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698