Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_ACTIONS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_ACTIONS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_ACTIONS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_ACTIONS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 public: | 26 public: |
| 27 // Types of log entries that can be stored. The numeric values are stored in | 27 // Types of log entries that can be stored. The numeric values are stored in |
| 28 // the database, so keep them stable. Append values only. | 28 // the database, so keep them stable. Append values only. |
| 29 enum ActionType { | 29 enum ActionType { |
| 30 ACTION_API_CALL = 0, | 30 ACTION_API_CALL = 0, |
| 31 ACTION_API_EVENT = 1, | 31 ACTION_API_EVENT = 1, |
| 32 ACTION_API_BLOCKED = 2, | 32 ACTION_API_BLOCKED = 2, |
| 33 ACTION_CONTENT_SCRIPT = 3, | 33 ACTION_CONTENT_SCRIPT = 3, |
| 34 ACTION_DOM_ACCESS = 4, | 34 ACTION_DOM_ACCESS = 4, |
| 35 ACTION_DOM_EVENT = 5, | 35 ACTION_DOM_EVENT = 5, |
| 36 ACTION_DOM_XHR = 6, | 36 ACTION_WEB_REQUEST = 6, |
|
Matt Perry
2013/08/02 19:23:04
Should this remain as 7? (If you add another one l
mvrable
2013/08/02 19:57:09
I was originally going to do that, but Adrienne po
felt
2013/08/02 19:59:31
I have a strong preference for keeping the code cl
Matt Perry
2013/08/02 20:26:05
SGTM
On 2013/08/02 19:59:31, felt wrote:
| |
| 37 ACTION_WEB_REQUEST = 7, | |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 // A useful shorthand for methods that take or return collections of Action | 39 // A useful shorthand for methods that take or return collections of Action |
| 41 // objects. | 40 // objects. |
| 42 typedef std::vector<scoped_refptr<Action> > ActionVector; | 41 typedef std::vector<scoped_refptr<Action> > ActionVector; |
| 43 | 42 |
| 44 // Creates a new activity log Action object. The extension_id, time, and | 43 // Creates a new activity log Action object. The extension_id, time, and |
| 45 // type are immutable. All other fields can be filled in with the | 44 // type are immutable. All other fields can be filled in with the |
| 46 // accessors/mutators below. | 45 // accessors/mutators below. |
| 47 Action(const std::string& extension_id, | 46 Action(const std::string& extension_id, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 GURL arg_url_; | 123 GURL arg_url_; |
| 125 bool arg_incognito_; | 124 bool arg_incognito_; |
| 126 scoped_ptr<DictionaryValue> other_; | 125 scoped_ptr<DictionaryValue> other_; |
| 127 | 126 |
| 128 DISALLOW_COPY_AND_ASSIGN(Action); | 127 DISALLOW_COPY_AND_ASSIGN(Action); |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 } // namespace extensions | 130 } // namespace extensions |
| 132 | 131 |
| 133 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_ACTIONS_H_ | 132 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_ACTIONS_H_ |
| OLD | NEW |