| 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/uma_policy.h" | 5 #include "chrome/browser/extensions/activity_log/uma_policy.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" | 10 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" |
| 11 #include "chrome/browser/extensions/activity_log/ad_network_database.h" | 11 #include "chrome/browser/extensions/activity_log/ad_network_database.h" |
| 12 #include "chrome/browser/sessions/session_id.h" | 12 #include "chrome/browser/sessions/session_id.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/browser_list.h" | 14 #include "chrome/browser/ui/browser_list.h" |
| 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 16 #include "chrome/common/extensions/dom_action_types.h" | |
| 17 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 18 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 19 #include "content/public/common/url_constants.h" | 18 #include "content/public/common/url_constants.h" |
| 19 #include "extensions/common/dom_action_types.h" |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // For convenience. | 25 // For convenience. |
| 26 const int kNoStatus = UmaPolicy::NONE; | 26 const int kNoStatus = UmaPolicy::NONE; |
| 27 const int kContentScript = 1 << UmaPolicy::CONTENT_SCRIPT; | 27 const int kContentScript = 1 << UmaPolicy::CONTENT_SCRIPT; |
| 28 const int kReadDom = 1 << UmaPolicy::READ_DOM; | 28 const int kReadDom = 1 << UmaPolicy::READ_DOM; |
| 29 const int kModifiedDom = 1 << UmaPolicy::MODIFIED_DOM; | 29 const int kModifiedDom = 1 << UmaPolicy::MODIFIED_DOM; |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 return "AdReplaced"; | 399 return "AdReplaced"; |
| 400 case NONE: | 400 case NONE: |
| 401 case MAX_STATUS: | 401 case MAX_STATUS: |
| 402 default: | 402 default: |
| 403 NOTREACHED(); | 403 NOTREACHED(); |
| 404 return ""; | 404 return ""; |
| 405 } | 405 } |
| 406 } | 406 } |
| 407 | 407 |
| 408 } // namespace extensions | 408 } // namespace extensions |
| OLD | NEW |