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

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

Issue 1272863003: Componentize protocol_event_observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/sync/protocol_event_observer.cc ('k') | chrome/chrome_browser.gypi » ('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_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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/scoped_observer.h" 13 #include "base/scoped_observer.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/sync/protocol_event_observer.h" 15 #include "components/sync_driver/protocol_event_observer.h"
16 #include "components/sync_driver/sync_service_observer.h" 16 #include "components/sync_driver/sync_service_observer.h"
17 #include "content/public/browser/web_ui_message_handler.h" 17 #include "content/public/browser/web_ui_message_handler.h"
18 #include "sync/internal_api/public/sessions/type_debug_info_observer.h" 18 #include "sync/internal_api/public/sessions/type_debug_info_observer.h"
19 #include "sync/js/js_controller.h" 19 #include "sync/js/js_controller.h"
20 #include "sync/js/js_event_handler.h" 20 #include "sync/js/js_event_handler.h"
21 21
22 class ProfileSyncService; 22 class ProfileSyncService;
23 23
24 // The implementation for the chrome://sync-internals page. 24 // The implementation for the chrome://sync-internals page.
25 class SyncInternalsMessageHandler : public content::WebUIMessageHandler, 25 class SyncInternalsMessageHandler : public content::WebUIMessageHandler,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // A flag used to prevent double-registration as TypeDebugInfoObserver with 93 // A flag used to prevent double-registration as TypeDebugInfoObserver with
94 // ProfileSyncService. 94 // ProfileSyncService.
95 bool is_registered_for_counters_; 95 bool is_registered_for_counters_;
96 96
97 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_; 97 base::WeakPtrFactory<SyncInternalsMessageHandler> weak_ptr_factory_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler); 99 DISALLOW_COPY_AND_ASSIGN(SyncInternalsMessageHandler);
100 }; 100 };
101 101
102 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_ 102 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol_event_observer.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698