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_ACTIVITY_LOG_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_POLICY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_POLICY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/extensions/activity_log/activity_actions.h" | 21 #include "chrome/browser/extensions/activity_log/activity_actions.h" |
22 #include "chrome/browser/extensions/activity_log/activity_database.h" | 22 #include "chrome/browser/extensions/activity_log/activity_database.h" |
23 #include "chrome/common/extensions/api/activity_log_private.h" | 23 #include "chrome/common/extensions/api/activity_log_private.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 class Profile; | 27 class Profile; |
28 class GURL; | 28 class GURL; |
29 | 29 |
30 namespace base { | 30 namespace base { |
| 31 class Clock; |
31 class FilePath; | 32 class FilePath; |
32 } | 33 } |
33 | 34 |
34 namespace extensions { | 35 namespace extensions { |
35 | 36 |
36 class Extension; | |
37 | 37 |
38 // An abstract class for processing and summarizing activity log data. | 38 // An abstract class for processing and summarizing activity log data. |
39 // Subclasses will generally store data in an SQLite database (the | 39 // Subclasses will generally store data in an SQLite database (the |
40 // ActivityLogDatabasePolicy subclass includes some helper methods to assist | 40 // ActivityLogDatabasePolicy subclass includes some helper methods to assist |
41 // with this case), but this is not absolutely required. | 41 // with this case), but this is not absolutely required. |
42 // | 42 // |
43 // Implementations should support: | 43 // Implementations should support: |
44 // (1) Receiving Actions to process, and summarizing, compression, and storing | 44 // (1) Receiving Actions to process, and summarizing, compression, and storing |
45 // these as appropriate. | 45 // these as appropriate. |
46 // (2) Reading Actions back from storage. | 46 // (2) Reading Actions back from storage. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 private: | 226 private: |
227 // See the comments for the ActivityDatabase class for a discussion of how | 227 // See the comments for the ActivityDatabase class for a discussion of how |
228 // database cleanup runs. | 228 // database cleanup runs. |
229 ActivityDatabase* db_; | 229 ActivityDatabase* db_; |
230 base::FilePath database_path_; | 230 base::FilePath database_path_; |
231 }; | 231 }; |
232 | 232 |
233 } // namespace extensions | 233 } // namespace extensions |
234 | 234 |
235 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_POLICY_H_ | 235 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_POLICY_H_ |
OLD | NEW |