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

Side by Side Diff: chrome/browser/extensions/activity_log/activity_database.h

Issue 155183002: Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase3 (activity_log) Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_DATABASE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_DATABASE_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_DATABASE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted_memory.h" 14 #include "base/memory/ref_counted_memory.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "base/timer/timer.h" 16 #include "base/timer/timer.h"
17 #include "chrome/browser/extensions/activity_log/activity_actions.h" 17 #include "chrome/browser/extensions/activity_log/activity_actions.h"
18 #include "content/public/browser/browser_thread.h"
19 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
20 #include "sql/connection.h" 19 #include "sql/connection.h"
21 #include "sql/init_status.h" 20 #include "sql/init_status.h"
22 21
23 namespace base { 22 namespace base {
24 class Clock; 23 class Clock;
25 class FilePath; 24 class FilePath;
26 } 25 }
27 26
28 namespace extensions { 27 namespace extensions {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 bool did_init_; 194 bool did_init_;
196 195
197 friend class ActivityLogDatabasePolicy; 196 friend class ActivityLogDatabasePolicy;
198 FRIEND_TEST_ALL_PREFIXES(ActivityDatabaseTest, BatchModeOff); 197 FRIEND_TEST_ALL_PREFIXES(ActivityDatabaseTest, BatchModeOff);
199 FRIEND_TEST_ALL_PREFIXES(ActivityDatabaseTest, BatchModeOn); 198 FRIEND_TEST_ALL_PREFIXES(ActivityDatabaseTest, BatchModeOn);
200 FRIEND_TEST_ALL_PREFIXES(ActivityDatabaseTest, BatchModeFlush); 199 FRIEND_TEST_ALL_PREFIXES(ActivityDatabaseTest, BatchModeFlush);
201 DISALLOW_COPY_AND_ASSIGN(ActivityDatabase); 200 DISALLOW_COPY_AND_ASSIGN(ActivityDatabase);
202 }; 201 };
203 202
204 } // namespace extensions 203 } // namespace extensions
204
205 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_DATABASE_H_ 205 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_DATABASE_H_
OLDNEW
« no previous file with comments | « apps/shell/browser/shell_extensions_browser_client.cc ('k') | chrome/browser/extensions/activity_log/activity_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698