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

Side by Side Diff: chrome/browser/dom_ui/new_tab_page_sync_handler.h

Issue 6541006: WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | « chrome/browser/dom_ui/net_internals_ui.h ('k') | chrome/browser/dom_ui/new_tab_ui.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DOM_UI_NEW_TAB_PAGE_SYNC_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_NEW_TAB_PAGE_SYNC_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_PAGE_SYNC_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_PAGE_SYNC_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/dom_ui/web_ui.h"
12 #include "chrome/browser/sync/profile_sync_service.h" 11 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "chrome/browser/sync/sync_ui_util.h" 12 #include "chrome/browser/sync/sync_ui_util.h"
13 #include "chrome/browser/webui/web_ui.h"
14 14
15 class ListValue; 15 class ListValue;
16 16
17 // Sends sync-state changes to the New Tab Page for UI updating and forwards 17 // Sends sync-state changes to the New Tab Page for UI updating and forwards
18 // link clicks on the page to the sync service. 18 // link clicks on the page to the sync service.
19 class NewTabPageSyncHandler : public WebUIMessageHandler, 19 class NewTabPageSyncHandler : public WebUIMessageHandler,
20 public ProfileSyncServiceObserver { 20 public ProfileSyncServiceObserver {
21 public: 21 public:
22 NewTabPageSyncHandler(); 22 NewTabPageSyncHandler();
23 virtual ~NewTabPageSyncHandler(); 23 virtual ~NewTabPageSyncHandler();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ProfileSyncService* sync_service_; 60 ProfileSyncService* sync_service_;
61 61
62 // Used to make sure we don't register ourselves twice if the user refreshes 62 // Used to make sure we don't register ourselves twice if the user refreshes
63 // the new tab page. 63 // the new tab page.
64 bool waiting_for_initial_page_load_; 64 bool waiting_for_initial_page_load_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(NewTabPageSyncHandler); 66 DISALLOW_COPY_AND_ASSIGN(NewTabPageSyncHandler);
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_PAGE_SYNC_HANDLER_H_ 69 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_PAGE_SYNC_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/net_internals_ui.h ('k') | chrome/browser/dom_ui/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698