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

Side by Side Diff: extensions/renderer/script_injection_manager.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 years, 12 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 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/script_injection_manager.h" 5 #include "extensions/renderer/script_injection_manager.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/values.h" 15 #include "base/values.h"
15 #include "content/public/common/browser_side_navigation_policy.h" 16 #include "content/public/common/browser_side_navigation_policy.h"
16 #include "content/public/renderer/render_frame.h" 17 #include "content/public/renderer/render_frame.h"
17 #include "content/public/renderer/render_frame_observer.h" 18 #include "content/public/renderer/render_frame_observer.h"
18 #include "content/public/renderer/render_thread.h" 19 #include "content/public/renderer/render_thread.h"
19 #include "extensions/common/extension.h" 20 #include "extensions/common/extension.h"
20 #include "extensions/common/extension_messages.h" 21 #include "extensions/common/extension_messages.h"
21 #include "extensions/common/extension_set.h" 22 #include "extensions/common/extension_set.h"
22 #include "extensions/renderer/extension_frame_helper.h" 23 #include "extensions/renderer/extension_frame_helper.h"
23 #include "extensions/renderer/extension_injection_host.h" 24 #include "extensions/renderer/extension_injection_host.h"
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 ScriptsRunInfo scripts_run_info(injection->render_frame(), 514 ScriptsRunInfo scripts_run_info(injection->render_frame(),
514 UserScript::RUN_DEFERRED); 515 UserScript::RUN_DEFERRED);
515 ScriptInjection::InjectionResult res = injection->OnPermissionGranted( 516 ScriptInjection::InjectionResult res = injection->OnPermissionGranted(
516 &scripts_run_info); 517 &scripts_run_info);
517 if (res == ScriptInjection::INJECTION_BLOCKED) 518 if (res == ScriptInjection::INJECTION_BLOCKED)
518 running_injections_.push_back(std::move(injection)); 519 running_injections_.push_back(std::move(injection));
519 scripts_run_info.LogRun(activity_logging_enabled_); 520 scripts_run_info.LogRun(activity_logging_enabled_);
520 } 521 }
521 522
522 } // namespace extensions 523 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698