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

Side by Side Diff: chrome/browser/extensions/activity_log/activity_log.cc

Issue 270623005: Update ActivityLog detection to use previous values, hrefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/extensions/activity_log/activity_log.h" 5 #include "chrome/browser/extensions/activity_log/activity_log.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 {Action::ACTION_API_CALL, "cookies.getAll", 0, DICT_LOOKUP, "url"}, 120 {Action::ACTION_API_CALL, "cookies.getAll", 0, DICT_LOOKUP, "url"},
121 {Action::ACTION_API_CALL, "cookies.remove", 0, DICT_LOOKUP, "url"}, 121 {Action::ACTION_API_CALL, "cookies.remove", 0, DICT_LOOKUP, "url"},
122 {Action::ACTION_API_CALL, "cookies.set", 0, DICT_LOOKUP, "url"}, 122 {Action::ACTION_API_CALL, "cookies.set", 0, DICT_LOOKUP, "url"},
123 {Action::ACTION_API_CALL, "downloads.download", 0, DICT_LOOKUP, "url"}, 123 {Action::ACTION_API_CALL, "downloads.download", 0, DICT_LOOKUP, "url"},
124 {Action::ACTION_API_CALL, "history.addUrl", 0, DICT_LOOKUP, "url"}, 124 {Action::ACTION_API_CALL, "history.addUrl", 0, DICT_LOOKUP, "url"},
125 {Action::ACTION_API_CALL, "history.deleteUrl", 0, DICT_LOOKUP, "url"}, 125 {Action::ACTION_API_CALL, "history.deleteUrl", 0, DICT_LOOKUP, "url"},
126 {Action::ACTION_API_CALL, "history.getVisits", 0, DICT_LOOKUP, "url"}, 126 {Action::ACTION_API_CALL, "history.getVisits", 0, DICT_LOOKUP, "url"},
127 {Action::ACTION_API_CALL, "webstore.install", 0, NONE, NULL}, 127 {Action::ACTION_API_CALL, "webstore.install", 0, NONE, NULL},
128 {Action::ACTION_API_CALL, "windows.create", 0, DICT_LOOKUP, "url"}, 128 {Action::ACTION_API_CALL, "windows.create", 0, DICT_LOOKUP, "url"},
129 {Action::ACTION_DOM_ACCESS, "Document.location", 0, NONE, NULL}, 129 {Action::ACTION_DOM_ACCESS, "Document.location", 0, NONE, NULL},
130 {Action::ACTION_DOM_ACCESS, "HTMLAnchorElement.href", 0, NONE, NULL},
130 {Action::ACTION_DOM_ACCESS, "HTMLButtonElement.formAction", 0, NONE, NULL}, 131 {Action::ACTION_DOM_ACCESS, "HTMLButtonElement.formAction", 0, NONE, NULL},
131 {Action::ACTION_DOM_ACCESS, "HTMLEmbedElement.src", 0, NONE, NULL}, 132 {Action::ACTION_DOM_ACCESS, "HTMLEmbedElement.src", 0, NONE, NULL},
132 {Action::ACTION_DOM_ACCESS, "HTMLFormElement.action", 0, NONE, NULL}, 133 {Action::ACTION_DOM_ACCESS, "HTMLFormElement.action", 0, NONE, NULL},
133 {Action::ACTION_DOM_ACCESS, "HTMLFrameElement.src", 0, NONE, NULL}, 134 {Action::ACTION_DOM_ACCESS, "HTMLFrameElement.src", 0, NONE, NULL},
134 {Action::ACTION_DOM_ACCESS, "HTMLHtmlElement.manifest", 0, NONE, NULL}, 135 {Action::ACTION_DOM_ACCESS, "HTMLHtmlElement.manifest", 0, NONE, NULL},
135 {Action::ACTION_DOM_ACCESS, "HTMLIFrameElement.src", 0, NONE, NULL}, 136 {Action::ACTION_DOM_ACCESS, "HTMLIFrameElement.src", 0, NONE, NULL},
136 {Action::ACTION_DOM_ACCESS, "HTMLImageElement.longDesc", 0, NONE, NULL}, 137 {Action::ACTION_DOM_ACCESS, "HTMLImageElement.longDesc", 0, NONE, NULL},
137 {Action::ACTION_DOM_ACCESS, "HTMLImageElement.src", 0, NONE, NULL}, 138 {Action::ACTION_DOM_ACCESS, "HTMLImageElement.src", 0, NONE, NULL},
138 {Action::ACTION_DOM_ACCESS, "HTMLImageElement.lowsrc", 0, NONE, NULL}, 139 {Action::ACTION_DOM_ACCESS, "HTMLImageElement.lowsrc", 0, NONE, NULL},
139 {Action::ACTION_DOM_ACCESS, "HTMLInputElement.formAction", 0, NONE, NULL}, 140 {Action::ACTION_DOM_ACCESS, "HTMLInputElement.formAction", 0, NONE, NULL},
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 database_policy_->DeleteDatabase(); 694 database_policy_->DeleteDatabase();
694 } 695 }
695 696
696 template <> 697 template <>
697 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies() { 698 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies() {
698 DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory()); 699 DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
699 DependsOn(InstallTrackerFactory::GetInstance()); 700 DependsOn(InstallTrackerFactory::GetInstance());
700 } 701 }
701 702
702 } // namespace extensions 703 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698