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

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

Issue 2669463002: [Extensions] Remove BaseFeatureProvider (Closed)
Patch Set: Created 3 years, 10 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_context.h" 5 #include "extensions/renderer/script_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "content/public/child/v8_value_converter.h" 14 #include "content/public/child/v8_value_converter.h"
15 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
16 #include "content/public/common/url_constants.h" 16 #include "content/public/common/url_constants.h"
17 #include "content/public/renderer/render_frame.h" 17 #include "content/public/renderer/render_frame.h"
18 #include "extensions/common/constants.h" 18 #include "extensions/common/constants.h"
19 #include "extensions/common/extension.h" 19 #include "extensions/common/extension.h"
20 #include "extensions/common/extension_api.h" 20 #include "extensions/common/extension_api.h"
21 #include "extensions/common/extension_urls.h" 21 #include "extensions/common/extension_urls.h"
22 #include "extensions/common/features/base_feature_provider.h" 22 #include "extensions/common/features/feature_provider.h"
23 #include "extensions/common/manifest_handlers/sandboxed_page_info.h" 23 #include "extensions/common/manifest_handlers/sandboxed_page_info.h"
24 #include "extensions/common/permissions/permissions_data.h" 24 #include "extensions/common/permissions/permissions_data.h"
25 #include "extensions/renderer/renderer_extension_registry.h" 25 #include "extensions/renderer/renderer_extension_registry.h"
26 #include "extensions/renderer/v8_helpers.h" 26 #include "extensions/renderer/v8_helpers.h"
27 #include "gin/per_context_data.h" 27 #include "gin/per_context_data.h"
28 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 28 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
29 #include "third_party/WebKit/public/platform/WebURLRequest.h" 29 #include "third_party/WebKit/public/platform/WebURLRequest.h"
30 #include "third_party/WebKit/public/web/WebDataSource.h" 30 #include "third_party/WebKit/public/web/WebDataSource.h"
31 #include "third_party/WebKit/public/web/WebDocument.h" 31 #include "third_party/WebKit/public/web/WebDocument.h"
32 #include "third_party/WebKit/public/web/WebFrame.h" 32 #include "third_party/WebKit/public/web/WebFrame.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 v8::Local<v8::Value> argv[]) { 538 v8::Local<v8::Value> argv[]) {
539 return context_->CallFunction(function, argc, argv); 539 return context_->CallFunction(function, argc, argv);
540 } 540 }
541 541
542 gin::ContextHolder* ScriptContext::Runner::GetContextHolder() { 542 gin::ContextHolder* ScriptContext::Runner::GetContextHolder() {
543 v8::HandleScope handle_scope(context_->isolate()); 543 v8::HandleScope handle_scope(context_->isolate());
544 return gin::PerContextData::From(context_->v8_context())->context_holder(); 544 return gin::PerContextData::From(context_->v8_context())->context_holder();
545 } 545 }
546 546
547 } // namespace extensions 547 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698