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

Side by Side Diff: chrome/browser/extensions/api/web_view/web_view_internal_api.cc

Issue 538063003: Move execute_code_function to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build Created 6 years, 3 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 "chrome/browser/extensions/api/web_view/web_view_internal_api.h" 5 #include "chrome/browser/extensions/api/web_view/web_view_internal_api.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" 8 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
9 #include "chrome/browser/extensions/api/context_menus/context_menus_api.h" 9 #include "chrome/browser/extensions/api/context_menus/context_menus_api.h"
10 #include "chrome/browser/extensions/api/context_menus/context_menus_api_helpers. h" 10 #include "chrome/browser/extensions/api/context_menus/context_menus_api_helpers. h"
11 #include "chrome/browser/extensions/tab_helper.h" 11 #include "chrome/browser/extensions/tab_helper.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/extensions/api/web_view_internal.h" 13 #include "chrome/common/extensions/api/web_view_internal.h"
14 #include "content/public/browser/render_process_host.h" 14 #include "content/public/browser/render_process_host.h"
15 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
16 #include "content/public/browser/storage_partition.h" 16 #include "content/public/browser/storage_partition.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "content/public/common/stop_find_action.h" 18 #include "content/public/common/stop_find_action.h"
19 #include "extensions/browser/api/capture_web_contents_function_impl.h" 19 #include "extensions/browser/api/capture_web_contents_function_impl.h"
20 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" 20 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h"
21 #include "extensions/common/error_utils.h" 21 #include "extensions/common/error_utils.h"
22 #include "third_party/WebKit/public/web/WebFindOptions.h" 22 #include "third_party/WebKit/public/web/WebFindOptions.h"
23 23
24 using content::WebContents; 24 using content::WebContents;
25 using extensions::api::tabs::InjectDetails;
26 using extensions::api::web_view_internal::SetPermission::Params; 25 using extensions::api::web_view_internal::SetPermission::Params;
26 using extensions::core_api::extension_types::InjectDetails;
27 namespace helpers = extensions::context_menus_api_helpers; 27 namespace helpers = extensions::context_menus_api_helpers;
28 namespace webview = extensions::api::web_view_internal; 28 namespace webview = extensions::api::web_view_internal;
29 29
30 namespace extensions { 30 namespace extensions {
31 31
32 namespace { 32 namespace {
33 int MaskForKey(const char* key) { 33 int MaskForKey(const char* key) {
34 if (strcmp(key, extension_browsing_data_api_constants::kAppCacheKey) == 0) 34 if (strcmp(key, extension_browsing_data_api_constants::kAppCacheKey) == 0)
35 return content::StoragePartition::REMOVE_DATA_MASK_APPCACHE; 35 return content::StoragePartition::REMOVE_DATA_MASK_APPCACHE;
36 if (strcmp(key, extension_browsing_data_api_constants::kCookiesKey) == 0) 36 if (strcmp(key, extension_browsing_data_api_constants::kCookiesKey) == 0)
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 597
598 WebViewInternalTerminateFunction::~WebViewInternalTerminateFunction() { 598 WebViewInternalTerminateFunction::~WebViewInternalTerminateFunction() {
599 } 599 }
600 600
601 bool WebViewInternalTerminateFunction::RunAsyncSafe(WebViewGuest* guest) { 601 bool WebViewInternalTerminateFunction::RunAsyncSafe(WebViewGuest* guest) {
602 guest->Terminate(); 602 guest->Terminate();
603 return true; 603 return true;
604 } 604 }
605 605
606 } // namespace extensions 606 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/web_view/web_view_internal_api.h ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698