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

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

Issue 6735004: Move extension messages to their own file and add a RenderViewObserver to start moving the extens... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
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_UI_WEBUI_SYNC_INTERNALS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 // getAboutInfo(): 29 // getAboutInfo():
30 // Immediately fires a onGetAboutInfoFinished() event with a 30 // Immediately fires a onGetAboutInfoFinished() event with a
31 // dictionary of sync-related stats and info. 31 // dictionary of sync-related stats and info.
32 // 32 //
33 // All other messages are routed to the sync service if it exists, 33 // All other messages are routed to the sync service if it exists,
34 // and dropped otherwise. 34 // and dropped otherwise.
35 // 35 //
36 // TODO(akalin): Add a simple isSyncEnabled() message and make 36 // TODO(akalin): Add a simple isSyncEnabled() message and make
37 // getAboutInfo() be handled by the sync service. 37 // getAboutInfo() be handled by the sync service.
38 virtual void ProcessWebUIMessage( 38 virtual void ProcessWebUIMessage(
39 const ViewHostMsg_DomMessage_Params& params); 39 const ExtensionHostMsg_DomMessage_Params& params);
40 40
41 // browser_sync::JsEventHandler implementation. 41 // browser_sync::JsEventHandler implementation.
42 virtual void HandleJsEvent(const std::string& name, 42 virtual void HandleJsEvent(const std::string& name,
43 const browser_sync::JsArgList& args); 43 const browser_sync::JsArgList& args);
44 44
45 private: 45 private:
46 // Returns the sync service's JsFrontend object, or NULL if the sync 46 // Returns the sync service's JsFrontend object, or NULL if the sync
47 // service does not exist. 47 // service does not exist.
48 browser_sync::JsFrontend* GetJsFrontend(); 48 browser_sync::JsFrontend* GetJsFrontend();
49 49
50 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI); 50 DISALLOW_COPY_AND_ASSIGN(SyncInternalsUI);
51 }; 51 };
52 52
53 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_ 53 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/background_contents.cc ('k') | chrome/browser/ui/webui/sync_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698