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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_activity_ui.h

Issue 15812004: Remove the Activity Log UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ACTIVITY_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ACTIVITY_UI_H_
7
8 #include <string>
9 #include <vector>
10 #include "chrome/browser/extensions/activity_log/activity_actions.h"
11 #include "chrome/browser/extensions/activity_log/activity_log.h"
12 #include "content/public/browser/web_ui_controller.h"
13
14 namespace extensions {
15 class Extension;
16 class Action;
17 }
18
19 class ExtensionActivityUI : public content::WebUIController,
20 public extensions::ActivityLog::Observer {
21 public:
22 explicit ExtensionActivityUI(content::WebUI* web_ui);
23 virtual ~ExtensionActivityUI();
24
25 // Callback for "requestExtensionData".
26 void HandleRequestExtensionData(const base::ListValue* args);
27
28 // Callback for fetching and displaying prior extension history data.
29 void FetchPreviousExtensionActivity(
30 scoped_ptr<std::vector<scoped_refptr<extensions::Action> > > actions);
31
32 // ActivityLog::Observer implementation.
33 virtual void OnExtensionActivity(
34 const extensions::Extension* extension,
35 extensions::ActivityLog::Activity activity,
36 const std::string& message) OVERRIDE;
37
38 private:
39 const extensions::Extension* extension_;
40 Profile* profile_;
41
42 DISALLOW_COPY_AND_ASSIGN(ExtensionActivityUI);
43 };
44
45 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ACTIVITY_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698