OLD | NEW |
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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 const base::Callback | 653 const base::Callback |
654 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback) { | 654 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback) { |
655 if (database_policy_) { | 655 if (database_policy_) { |
656 database_policy_->ReadFilteredData( | 656 database_policy_->ReadFilteredData( |
657 extension_id, type, api_name, page_url, arg_url, daysAgo, callback); | 657 extension_id, type, api_name, page_url, arg_url, daysAgo, callback); |
658 } | 658 } |
659 } | 659 } |
660 | 660 |
661 // DELETE ACTIONS. ------------------------------------------------------------- | 661 // DELETE ACTIONS. ------------------------------------------------------------- |
662 | 662 |
| 663 void ActivityLog::RemoveActions(const std::vector<int64>& action_ids) { |
| 664 if (!database_policy_) |
| 665 return; |
| 666 database_policy_->RemoveActions(action_ids); |
| 667 } |
| 668 |
663 void ActivityLog::RemoveURLs(const std::vector<GURL>& restrict_urls) { | 669 void ActivityLog::RemoveURLs(const std::vector<GURL>& restrict_urls) { |
664 if (!database_policy_) | 670 if (!database_policy_) |
665 return; | 671 return; |
666 database_policy_->RemoveURLs(restrict_urls); | 672 database_policy_->RemoveURLs(restrict_urls); |
667 } | 673 } |
668 | 674 |
669 void ActivityLog::RemoveURLs(const std::set<GURL>& restrict_urls) { | 675 void ActivityLog::RemoveURLs(const std::set<GURL>& restrict_urls) { |
670 if (!database_policy_) | 676 if (!database_policy_) |
671 return; | 677 return; |
672 | 678 |
(...skipping 13 matching lines...) Expand all Loading... |
686 RemoveURLs(urls); | 692 RemoveURLs(urls); |
687 } | 693 } |
688 | 694 |
689 void ActivityLog::DeleteDatabase() { | 695 void ActivityLog::DeleteDatabase() { |
690 if (!database_policy_) | 696 if (!database_policy_) |
691 return; | 697 return; |
692 database_policy_->DeleteDatabase(); | 698 database_policy_->DeleteDatabase(); |
693 } | 699 } |
694 | 700 |
695 } // namespace extensions | 701 } // namespace extensions |
OLD | NEW |