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

Unified Diff: chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h

Issue 15573003: New architecture of the activity logging: Policies for summarization (and compression) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Adrienne's final comments. Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
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..e67aee3f42eb95a2b4b918623b19a3bc02f112b7
--- /dev/null
+++ b/chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h
@@ -0,0 +1,37 @@
+// Copyright $YEAR 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/hash_tables.h"
+#include "chrome/browser/extensions/activity_log/api_actions.h"
+#include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h"
+
+namespace extensions {
+
+class StreamWithoutArgsUIPolicy : public FullStreamUIPolicy {
Matt Perry 2013/05/30 18:55:32 Add a class comment.
dbabic 2013/05/30 21:51:25 Done.
+ public:
+ explicit StreamWithoutArgsUIPolicy(Profile* profile,
+ content::BrowserThread::ID thread_id);
+ virtual ~StreamWithoutArgsUIPolicy();
+
+ protected:
+ virtual void ProcessArguments(ActionType action_type,
+ const std::string& name,
+ const base::ListValue* args,
+ std::stringstream& args_string)
+ const OVERRIDE;
+
+ virtual void ProcessWebRequestModifications(
+ base::DictionaryValue& details,
+ std::string& details_string) const OVERRIDE;
+ private:
+ base::hash_set<std::string> arg_whitelist_api_;
+};
+
+} // End of the extensions namespace
+
+#endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_STREAM_NOARGS_UI_POLICY_H_

Powered by Google App Engine
This is Rietveld 408576698