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 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/stringprintf.h" | 6 #include "base/stringprintf.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/extensions/dom_actions.h" | 8 #include "chrome/browser/extensions/dom_actions.h" |
| 9 #include "chrome/browser/history/url_database.h" |
9 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
10 | 11 |
11 using content::BrowserThread; | 12 using content::BrowserThread; |
12 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 | 15 |
15 const char* DOMAction::kTableName = "activitylog_urls"; | 16 const char* DOMAction::kTableName = "activitylog_urls"; |
16 const char* DOMAction::kTableContentFields[] = | 17 const char* DOMAction::kTableContentFields[] = |
17 {"url_action_type", "url", "url_title", "api_call", "args", "extra"}; | 18 {"url_action_type", "url", "url_title", "api_call", "args", "extra"}; |
18 | 19 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 return INSERTED; | 124 return INSERTED; |
124 } else if (str == "XHR") { | 125 } else if (str == "XHR") { |
125 return XHR; | 126 return XHR; |
126 } else { | 127 } else { |
127 NOTREACHED(); | 128 NOTREACHED(); |
128 return MODIFIED; // this should never happen! | 129 return MODIFIED; // this should never happen! |
129 } | 130 } |
130 } | 131 } |
131 | 132 |
132 } // namespace extensions | 133 } // namespace extensions |
133 | |
OLD | NEW |