Chromium Code Reviews| OLD | NEW |
|---|---|
| 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" | 10 #include "chrome/browser/extensions/activity_log/api_actions.h" |
| 11 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" | 11 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 // A policy for logging the stream of actions, but without arguments. | 15 // A policy for logging the stream of actions, but without arguments. |
| 16 class StreamWithoutArgsUIPolicy : public FullStreamUIPolicy { | 16 class StreamWithoutArgsUIPolicy : public FullStreamUIPolicy { |
| 17 public: | 17 public: |
| 18 explicit StreamWithoutArgsUIPolicy(Profile* profile); | 18 explicit StreamWithoutArgsUIPolicy(Profile* profile); |
| 19 virtual ~StreamWithoutArgsUIPolicy(); | 19 virtual ~StreamWithoutArgsUIPolicy(); |
| 20 | 20 |
| 21 // Clean the relevant URL data stored for this policy. | |
|
mvrable
2013/07/17 16:41:23
StreamWithoutArgsUIPolicy inherits from FullStream
karenlees
2013/08/08 23:36:37
Done.
| |
| 22 virtual void RemoveURLs(const std::vector<GURL>& gurls); | |
| 23 virtual void RemoveURL(const GURL& gurl); | |
| 24 | |
| 21 protected: | 25 protected: |
| 22 virtual std::string ProcessArguments(ActionType action_type, | 26 virtual std::string ProcessArguments(ActionType action_type, |
| 23 const std::string& name, | 27 const std::string& name, |
| 24 const base::ListValue* args) | 28 const base::ListValue* args) |
| 25 const OVERRIDE; | 29 const OVERRIDE; |
| 26 | 30 |
| 27 virtual void ProcessWebRequestModifications( | 31 virtual void ProcessWebRequestModifications( |
| 28 base::DictionaryValue& details, | 32 base::DictionaryValue& details, |
| 29 std::string& details_string) const OVERRIDE; | 33 std::string& details_string) const OVERRIDE; |
| 30 private: | 34 private: |
| 31 base::hash_set<std::string> arg_whitelist_api_; | 35 base::hash_set<std::string> arg_whitelist_api_; |
| 32 }; | 36 }; |
| 33 | 37 |
| 34 } // namespace extensions | 38 } // namespace extensions |
| 35 | 39 |
| 36 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ | 40 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_ |
| OLD | NEW |