 Chromium Code Reviews
 Chromium Code Reviews Issue 21646004:
  Compressed activity log database storage  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@refactor-cleanups
    
  
    Issue 21646004:
  Compressed activity log database storage  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@refactor-cleanups| 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_COUNTING_POLICY_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_COUNTING_POLICY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/containers/hash_tables.h" | |
| 11 #include "chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h" | |
| 12 | |
| 13 namespace extensions { | |
| 14 | |
| 15 // A policy for logging the stream of actions, but without arguments. | |
| 16 class CountingPolicy : public StreamWithoutArgsUIPolicy { | |
| 
felt
2013/08/02 16:36:28
Is there a reason to keep the StreamWithoutArgsUIP
 
mvrable
2013/08/02 17:16:58
Probably not.  I need to do some cleanup work here
 | |
| 17 public: | |
| 18 explicit CountingPolicy(Profile* profile); | |
| 19 virtual ~CountingPolicy(); | |
| 20 | |
| 21 /*virtual void ProcessAction(scoped_refptr<Action> action) OVERRIDE;*/ | |
| 22 | |
| 23 static const char* kTableName; | |
| 24 static const char* kTableContentFields[]; | |
| 25 static const char* kTableFieldTypes[]; | |
| 26 | |
| 27 protected: | |
| 28 // Implementing ActivityDatabase::Delegate. | |
| 29 virtual bool InitDatabase(sql::Connection* db) OVERRIDE; | |
| 30 virtual bool FlushDatabase(sql::Connection* db) OVERRIDE; | |
| 31 | |
| 32 private: | |
| 33 /*void QueueAction(scoped_refptr<Action> action);*/ | |
| 34 | |
| 35 /*base::hash_set<std::string> arg_whitelist_api_;*/ | |
| 36 }; | |
| 37 | |
| 38 } // namespace extensions | |
| 39 | |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_COUNTING_POLICY_H_ | |
| OLD | NEW |