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

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

Issue 1899083003: Convert //extensions/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « extensions/renderer/user_script_injector.h ('k') | extensions/renderer/user_script_set.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/user_script_injector.h" 5 #include "extensions/renderer/user_script_injector.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 scripts_run_info->executing_scripts[host_id_.id()].insert( 245 scripts_run_info->executing_scripts[host_id_.id()].insert(
246 iter->url().path()); 246 iter->url().path());
247 } 247 }
248 } 248 }
249 249
250 if (ShouldInjectCss(run_location)) 250 if (ShouldInjectCss(run_location))
251 scripts_run_info->num_css += script_->css_scripts().size(); 251 scripts_run_info->num_css += script_->css_scripts().size();
252 } 252 }
253 253
254 void UserScriptInjector::OnInjectionComplete( 254 void UserScriptInjector::OnInjectionComplete(
255 scoped_ptr<base::Value> execution_result, 255 std::unique_ptr<base::Value> execution_result,
256 UserScript::RunLocation run_location, 256 UserScript::RunLocation run_location,
257 content::RenderFrame* render_frame) { 257 content::RenderFrame* render_frame) {}
258 }
259 258
260 void UserScriptInjector::OnWillNotInject(InjectFailureReason reason, 259 void UserScriptInjector::OnWillNotInject(InjectFailureReason reason,
261 content::RenderFrame* render_frame) { 260 content::RenderFrame* render_frame) {
262 } 261 }
263 262
264 } // namespace extensions 263 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/user_script_injector.h ('k') | extensions/renderer/user_script_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698