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

Side by Side Diff: chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h

Issue 19690003: Extension activity log database refactoring (step 3) (Closed) Base URL: http://git.chromium.org/chromium/src.git@refactor2
Patch Set: Do not set bad BlockedChromeActivityDetail::Reason values Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "chrome/browser/extensions/activity_log/api_actions.h"
11 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" 10 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h"
12 11
13 namespace extensions { 12 namespace extensions {
14 13
15 // A policy for logging the stream of actions, but without arguments. 14 // A policy for logging the stream of actions, but without arguments.
16 class StreamWithoutArgsUIPolicy : public FullStreamUIPolicy { 15 class StreamWithoutArgsUIPolicy : public FullStreamUIPolicy {
17 public: 16 public:
18 explicit StreamWithoutArgsUIPolicy(Profile* profile); 17 explicit StreamWithoutArgsUIPolicy(Profile* profile);
19 virtual ~StreamWithoutArgsUIPolicy(); 18 virtual ~StreamWithoutArgsUIPolicy();
20 19
21 protected: 20 protected:
22 virtual scoped_ptr<base::ListValue> ProcessArguments( 21 virtual void ProcessArguments(scoped_refptr<Action> action) const
23 ActionType action_type, 22 OVERRIDE;
24 const std::string& name,
25 const base::ListValue* args) const OVERRIDE;
26 23
27 virtual void ProcessWebRequestModifications( 24 virtual void ProcessWebRequestModifications(
28 base::DictionaryValue& details, 25 base::DictionaryValue& details,
29 std::string& details_string) const OVERRIDE; 26 std::string& details_string) const OVERRIDE;
30 private: 27 private:
31 base::hash_set<std::string> arg_whitelist_api_; 28 base::hash_set<std::string> arg_whitelist_api_;
32 }; 29 };
33 30
34 } // namespace extensions 31 } // namespace extensions
35 32
36 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ 33 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698