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

Side by Side Diff: chrome/browser/ui/webui/sync_internals_message_handler.h

Issue 2374913002: [USS] Show USS counters in about:sync page (Closed)
Patch Set: For IOS Created 4 years, 2 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 CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void OnStateChanged() override; 77 void OnStateChanged() override;
78 78
79 // ProtocolEventObserver implementation. 79 // ProtocolEventObserver implementation.
80 void OnProtocolEvent(const syncer::ProtocolEvent& e) override; 80 void OnProtocolEvent(const syncer::ProtocolEvent& e) override;
81 81
82 // TypeDebugInfoObserver implementation. 82 // TypeDebugInfoObserver implementation.
83 void OnCommitCountersUpdated(syncer::ModelType type, 83 void OnCommitCountersUpdated(syncer::ModelType type,
84 const syncer::CommitCounters& counters) override; 84 const syncer::CommitCounters& counters) override;
85 void OnUpdateCountersUpdated(syncer::ModelType type, 85 void OnUpdateCountersUpdated(syncer::ModelType type,
86 const syncer::UpdateCounters& counters) override; 86 const syncer::UpdateCounters& counters) override;
87 void OnStatusCountersUpdated(syncer::ModelType type, 87 void OnStatusCountersUpdated(
88 const syncer::StatusCounters& counters) override; 88 syncer::ModelType type,
89 std::unique_ptr<syncer::StatusCounters> counters) override;
89 90
90 // Helper to emit counter updates. 91 // Helper to emit counter updates.
91 // 92 //
92 // Used in implementation of On*CounterUpdated methods. Emits the given 93 // Used in implementation of On*CounterUpdated methods. Emits the given
93 // dictionary value with additional data to specify the model type and 94 // dictionary value with additional data to specify the model type and
94 // counter type. 95 // counter type.
95 void EmitCounterUpdate(syncer::ModelType type, 96 void EmitCounterUpdate(syncer::ModelType type,
96 const std::string& counter_type, 97 const std::string& counter_type,
97 std::unique_ptr<base::DictionaryValue> value); 98 std::unique_ptr<base::DictionaryValue> value);
98 99
(...skipping 20 matching lines...) Expand all
119 120
120 // An abstraction of who creates the about sync info value map. 121 // An abstraction of who creates the about sync info value map.
121 std::unique_ptr<AboutSyncDataExtractor> about_sync_data_extractor_; 122 std::unique_ptr<AboutSyncDataExtractor> about_sync_data_extractor_;
122 123
123 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; 124 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); 126 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler);
126 }; 127 };
127 128
128 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ 129 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698