Index: chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h |
diff --git a/chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h b/chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f91ffd05582ed47450bf583b0bc4869aa7637d47 |
--- /dev/null |
+++ b/chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ |
+#define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ |
+ |
+#include <string> |
+#include "base/containers/hash_tables.h" |
+#include "chrome/browser/extensions/activity_log/api_actions.h" |
+#include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" |
+ |
+namespace extensions { |
+ |
+// A policy for logging the stream of actions, but without arguments. |
+class StreamWithoutArgsUIPolicy : public FullStreamUIPolicy { |
+ public: |
+ explicit StreamWithoutArgsUIPolicy(Profile* profile); |
+ virtual ~StreamWithoutArgsUIPolicy(); |
+ |
+ protected: |
+ virtual std::string ProcessArguments(ActionType action_type, |
+ const std::string& name, |
+ const base::ListValue* args) |
+ const OVERRIDE; |
+ |
+ virtual void ProcessWebRequestModifications( |
+ base::DictionaryValue& details, |
+ std::string& details_string) const OVERRIDE; |
+ private: |
+ base::hash_set<std::string> arg_whitelist_api_; |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ |