OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ |
| 7 |
| 8 #include <string> |
| 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" |
| 12 |
| 13 namespace extensions { |
| 14 |
| 15 // A policy for logging the stream of actions, but without arguments. |
| 16 class StreamWithoutArgsUIPolicy : public FullStreamUIPolicy { |
| 17 public: |
| 18 explicit StreamWithoutArgsUIPolicy(Profile* profile, |
| 19 content::BrowserThread::ID thread_id); |
| 20 virtual ~StreamWithoutArgsUIPolicy(); |
| 21 |
| 22 protected: |
| 23 virtual void ProcessArguments(ActionType action_type, |
| 24 const std::string& name, |
| 25 const base::ListValue* args, |
| 26 std::string* args_string) |
| 27 const OVERRIDE; |
| 28 |
| 29 virtual void ProcessWebRequestModifications( |
| 30 base::DictionaryValue& details, |
| 31 std::string& details_string) const OVERRIDE; |
| 32 private: |
| 33 base::hash_set<std::string> arg_whitelist_api_; |
| 34 }; |
| 35 |
| 36 } // namespace extensions |
| 37 |
| 38 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ |
OLD | NEW |