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_FULLSTREAM_UI_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include "chrome/browser/extensions/activity_log/activity_database.h" | 10 #include "chrome/browser/extensions/activity_log/activity_database.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 const int day, | 38 const int day, |
39 const base::Callback | 39 const base::Callback |
40 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback) | 40 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback) |
41 const OVERRIDE; | 41 const OVERRIDE; |
42 | 42 |
43 // Returns the actual key for a given key type | 43 // Returns the actual key for a given key type |
44 virtual std::string GetKey(ActivityLogPolicy::KeyType key_id) const OVERRIDE; | 44 virtual std::string GetKey(ActivityLogPolicy::KeyType key_id) const OVERRIDE; |
45 | 45 |
46 virtual void Close() OVERRIDE; | 46 virtual void Close() OVERRIDE; |
47 | 47 |
48 // Clean the relevant URL data stored for this policy. | |
49 virtual void RemoveURLs(const std::vector<GURL>& gurls); | |
mvrable
2013/07/17 16:41:23
Mark these methods as OVERRIDE
karenlees
2013/08/08 23:36:37
Done.
| |
50 virtual void RemoveURL(const GURL& gurl); | |
51 | |
48 protected: | 52 protected: |
49 // Only ever run by OnDatabaseClose() below; see the comments on the | 53 // Only ever run by OnDatabaseClose() below; see the comments on the |
50 // ActivityDatabase class for an overall discussion of how cleanup works. | 54 // ActivityDatabase class for an overall discussion of how cleanup works. |
51 virtual ~FullStreamUIPolicy() {} | 55 virtual ~FullStreamUIPolicy() {} |
52 | 56 |
53 // The ActivityDatabase::PolicyDelegate interface. These are always called | 57 // The ActivityDatabase::PolicyDelegate interface. These are always called |
54 // from the database thread. | 58 // from the database thread. |
55 virtual bool OnDatabaseInit(sql::Connection* db) OVERRIDE; | 59 virtual bool OnDatabaseInit(sql::Connection* db) OVERRIDE; |
56 virtual void OnDatabaseClose() OVERRIDE; | 60 virtual void OnDatabaseClose() OVERRIDE; |
57 | 61 |
58 // Concatenates arguments | 62 // Concatenates arguments |
59 virtual std::string ProcessArguments(ActionType action_type, | 63 virtual std::string ProcessArguments(ActionType action_type, |
60 const std::string& name, | 64 const std::string& name, |
61 const base::ListValue* args) const; | 65 const base::ListValue* args) const; |
62 | 66 |
63 virtual void ProcessWebRequestModifications( | 67 virtual void ProcessWebRequestModifications( |
64 base::DictionaryValue& details, | 68 base::DictionaryValue& details, |
65 std::string& details_string) const; | 69 std::string& details_string) const; |
66 | 70 |
67 // See the comments for the ActivityDatabase class for a discussion of how | 71 // See the comments for the ActivityDatabase class for a discussion of how |
68 // cleanup runs. | 72 // cleanup runs. |
69 ActivityDatabase* db_; | 73 ActivityDatabase* db_; |
70 }; | 74 }; |
71 | 75 |
72 } // namespace extensions | 76 } // namespace extensions |
73 | 77 |
74 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ |
OLD | NEW |