| 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_DOM_ACTIONS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_DOM_ACTIONS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_DOM_ACTIONS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_DOM_ACTIONS_H_ |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "chrome/browser/extensions/activity_log/activity_actions.h" | 9 #include "chrome/browser/extensions/activity_log/activity_actions.h" |
| 10 #include "chrome/common/extensions/dom_action_types.h" | 10 #include "chrome/common/extensions/dom_action_types.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const std::string& args, // the args | 38 const std::string& args, // the args |
| 39 const std::string& extra); // any extra logging info | 39 const std::string& extra); // any extra logging info |
| 40 | 40 |
| 41 // Create a new DOMAction from a database row. | 41 // Create a new DOMAction from a database row. |
| 42 explicit DOMAction(const sql::Statement& s); | 42 explicit DOMAction(const sql::Statement& s); |
| 43 | 43 |
| 44 virtual scoped_ptr<api::activity_log_private::ExtensionActivity> | 44 virtual scoped_ptr<api::activity_log_private::ExtensionActivity> |
| 45 ConvertToExtensionActivity() OVERRIDE; | 45 ConvertToExtensionActivity() OVERRIDE; |
| 46 | 46 |
| 47 // Record the action in the database. | 47 // Record the action in the database. |
| 48 virtual void Record(sql::Connection* db) OVERRIDE; | 48 virtual bool Record(sql::Connection* db) OVERRIDE; |
| 49 | 49 |
| 50 // Print a DOMAction as a regular string for debugging purposes. | 50 // Print a DOMAction as a regular string for debugging purposes. |
| 51 virtual std::string PrintForDebug() OVERRIDE; | 51 virtual std::string PrintForDebug() OVERRIDE; |
| 52 | 52 |
| 53 // Helper methods for retrieving the values and debugging. | 53 // Helper methods for retrieving the values and debugging. |
| 54 std::string VerbAsString() const; | 54 std::string VerbAsString() const; |
| 55 const GURL& url() const { return url_; } | 55 const GURL& url() const { return url_; } |
| 56 const string16& url_title() const { return url_title_; } | 56 const string16& url_title() const { return url_title_; } |
| 57 const std::string& api_call() const { return api_call_; } | 57 const std::string& api_call() const { return api_call_; } |
| 58 const std::string& args() const { return args_; } | 58 const std::string& args() const { return args_; } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 69 std::string args_; | 69 std::string args_; |
| 70 std::string extra_; | 70 std::string extra_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(DOMAction); | 72 DISALLOW_COPY_AND_ASSIGN(DOMAction); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace extensions | 75 } // namespace extensions |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_DOM_ACTIONS_H_ | 77 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_DOM_ACTIONS_H_ |
| 78 | 78 |
| OLD | NEW |