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

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

Issue 312883004: Reland 274558 - Move some extensions renderer resources to extensions_renderer_resources.grd. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « extensions/renderer/resources/utils.js ('k') | tools/gritsettings/resource_ids » ('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/script_injection.h" 5 #include "extensions/renderer/script_injection.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "content/public/common/url_constants.h" 11 #include "content/public/common/url_constants.h"
12 #include "content/public/renderer/render_view.h" 12 #include "content/public/renderer/render_view.h"
13 #include "extensions/common/extension.h" 13 #include "extensions/common/extension.h"
14 #include "extensions/common/extension_messages.h" 14 #include "extensions/common/extension_messages.h"
15 #include "extensions/common/feature_switch.h" 15 #include "extensions/common/feature_switch.h"
16 #include "extensions/common/permissions/permissions_data.h" 16 #include "extensions/common/permissions/permissions_data.h"
17 #include "extensions/renderer/dom_activity_logger.h" 17 #include "extensions/renderer/dom_activity_logger.h"
18 #include "extensions/renderer/extension_groups.h" 18 #include "extensions/renderer/extension_groups.h"
19 #include "extensions/renderer/extension_helper.h" 19 #include "extensions/renderer/extension_helper.h"
20 #include "extensions/renderer/script_context.h" 20 #include "extensions/renderer/script_context.h"
21 #include "extensions/renderer/user_script_slave.h" 21 #include "extensions/renderer/user_script_slave.h"
22 #include "grit/renderer_resources.h" 22 #include "grit/extensions_renderer_resources.h"
23 #include "third_party/WebKit/public/web/WebDocument.h" 23 #include "third_party/WebKit/public/web/WebDocument.h"
24 #include "third_party/WebKit/public/web/WebFrame.h" 24 #include "third_party/WebKit/public/web/WebFrame.h"
25 #include "third_party/WebKit/public/web/WebScriptSource.h" 25 #include "third_party/WebKit/public/web/WebScriptSource.h"
26 #include "third_party/WebKit/public/web/WebView.h" 26 #include "third_party/WebKit/public/web/WebView.h"
27 #include "ui/base/resource/resource_bundle.h" 27 #include "ui/base/resource/resource_bundle.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 namespace extensions { 30 namespace extensions {
31 31
32 namespace { 32 namespace {
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 scripts_run_info->num_css += css_scripts.size(); 348 scripts_run_info->num_css += css_scripts.size();
349 for (UserScript::FileList::const_iterator iter = css_scripts.begin(); 349 for (UserScript::FileList::const_iterator iter = css_scripts.begin();
350 iter != css_scripts.end(); 350 iter != css_scripts.end();
351 ++iter) { 351 ++iter) {
352 frame->document().insertStyleSheet( 352 frame->document().insertStyleSheet(
353 blink::WebString::fromUTF8(iter->GetContent().as_string())); 353 blink::WebString::fromUTF8(iter->GetContent().as_string()));
354 } 354 }
355 } 355 }
356 356
357 } // namespace extensions 357 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/resources/utils.js ('k') | tools/gritsettings/resource_ids » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698