| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/renderer/scripts_run_info.h" | 5 #include "extensions/renderer/scripts_run_info.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "content/public/renderer/render_frame.h" | 8 #include "content/public/renderer/render_frame.h" |
| 9 #include "content/public/renderer/render_thread.h" | 9 #include "content/public/renderer/render_thread.h" |
| 10 #include "extensions/common/extension_messages.h" | 10 #include "extensions/common/extension_messages.h" |
| 11 #include "extensions/renderer/script_context.h" | 11 #include "extensions/renderer/script_context.h" |
| 12 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 12 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 ScriptsRunInfo::ScriptsRunInfo(content::RenderFrame* render_frame, | 16 ScriptsRunInfo::ScriptsRunInfo(content::RenderFrame* render_frame, |
| 17 UserScript::RunLocation location) | 17 UserScript::RunLocation location) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 case UserScript::BROWSER_DRIVEN: | 68 case UserScript::BROWSER_DRIVEN: |
| 69 // TODO(rdevlin.cronin): Add histograms. | 69 // TODO(rdevlin.cronin): Add histograms. |
| 70 break; | 70 break; |
| 71 case UserScript::UNDEFINED: | 71 case UserScript::UNDEFINED: |
| 72 case UserScript::RUN_LOCATION_LAST: | 72 case UserScript::RUN_LOCATION_LAST: |
| 73 NOTREACHED(); | 73 NOTREACHED(); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace extensions | 77 } // namespace extensions |
| OLD | NEW |