| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" | 5 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| 11 #include "base/json/json_string_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" | 15 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" |
| 16 #include "chrome/browser/extensions/activity_log/activity_database.h" | 16 #include "chrome/browser/extensions/activity_log/activity_database.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
| 19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/extensions/dom_action_types.h" | 20 #include "chrome/common/extensions/dom_action_types.h" |
| 21 #include "chrome/common/extensions/extension.h" | 21 #include "extensions/common/extension.h" |
| 22 #include "sql/error_delegate_util.h" | 22 #include "sql/error_delegate_util.h" |
| 23 #include "sql/transaction.h" | 23 #include "sql/transaction.h" |
| 24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 using base::Callback; | 26 using base::Callback; |
| 27 using base::FilePath; | 27 using base::FilePath; |
| 28 using base::Time; | 28 using base::Time; |
| 29 using base::Unretained; | 29 using base::Unretained; |
| 30 using content::BrowserThread; | 30 using content::BrowserThread; |
| 31 | 31 |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 } | 402 } |
| 403 | 403 |
| 404 void FullStreamUIPolicy::QueueAction(scoped_refptr<Action> action) { | 404 void FullStreamUIPolicy::QueueAction(scoped_refptr<Action> action) { |
| 405 if (activity_database()->is_db_valid()) { | 405 if (activity_database()->is_db_valid()) { |
| 406 queued_actions_.push_back(action); | 406 queued_actions_.push_back(action); |
| 407 activity_database()->AdviseFlush(queued_actions_.size()); | 407 activity_database()->AdviseFlush(queued_actions_.size()); |
| 408 } | 408 } |
| 409 } | 409 } |
| 410 | 410 |
| 411 } // namespace extensions | 411 } // namespace extensions |
| OLD | NEW |