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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE R_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE R_H_
6 #define IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE R_H_ 6 #define IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HANDLE R_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "components/sync/js/js_controller.h"
14 #include "components/sync/js/js_event_handler.h"
15 #include "components/sync/sessions/type_debug_info_observer.h"
13 #include "components/sync_driver/protocol_event_observer.h" 16 #include "components/sync_driver/protocol_event_observer.h"
14 #include "components/sync_driver/sync_service_observer.h" 17 #include "components/sync_driver/sync_service_observer.h"
15 #include "ios/web/public/webui/web_ui_ios_message_handler.h" 18 #include "ios/web/public/webui/web_ui_ios_message_handler.h"
16 #include "sync/internal_api/public/sessions/type_debug_info_observer.h"
17 #include "sync/js/js_controller.h"
18 #include "sync/js/js_event_handler.h"
19 19
20 namespace sync_driver { 20 namespace sync_driver {
21 class SyncService; 21 class SyncService;
22 } 22 }
23 23
24 // The implementation for the chrome://sync-internals page. 24 // The implementation for the chrome://sync-internals page.
25 class SyncInternalsMessageHandler : public web::WebUIIOSMessageHandler, 25 class SyncInternalsMessageHandler : public web::WebUIIOSMessageHandler,
26 public syncer::JsEventHandler, 26 public syncer::JsEventHandler,
27 public sync_driver::SyncServiceObserver, 27 public sync_driver::SyncServiceObserver,
28 public browser_sync::ProtocolEventObserver, 28 public browser_sync::ProtocolEventObserver,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // A flag used to prevent double-registration as TypeDebugInfoObserver with 94 // A flag used to prevent double-registration as TypeDebugInfoObserver with
95 // ProfileSyncService. 95 // ProfileSyncService.
96 bool is_registered_for_counters_; 96 bool is_registered_for_counters_;
97 97
98 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; 98 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); 100 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler);
101 }; 101 };
102 102
103 #endif // IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HAN DLER_H_ 103 #endif // IOS_CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_SYNC_INTERNALS_MESSAGE_HAN DLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698