OLD | NEW |
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/guest_view/web_view/web_view_permission_helper.h" |
12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/common/extensions/api/web_view_internal.h" | 14 #include "chrome/common/extensions/api/web_view_internal.h" |
14 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
15 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
16 #include "content/public/browser/storage_partition.h" | 17 #include "content/public/browser/storage_partition.h" |
17 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
18 #include "content/public/common/stop_find_action.h" | 19 #include "content/public/common/stop_find_action.h" |
19 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | |
20 #include "extensions/common/error_utils.h" | 20 #include "extensions/common/error_utils.h" |
21 #include "third_party/WebKit/public/web/WebFindOptions.h" | 21 #include "third_party/WebKit/public/web/WebFindOptions.h" |
22 | 22 |
23 using content::WebContents; | 23 using content::WebContents; |
24 using extensions::api::tabs::InjectDetails; | 24 using extensions::api::tabs::InjectDetails; |
25 using extensions::api::web_view_internal::SetPermission::Params; | 25 using extensions::api::web_view_internal::SetPermission::Params; |
26 namespace helpers = extensions::context_menus_api_helpers; | 26 namespace helpers = extensions::context_menus_api_helpers; |
27 namespace webview = extensions::api::web_view_internal; | 27 namespace webview = extensions::api::web_view_internal; |
28 | 28 |
29 namespace extensions { | 29 namespace extensions { |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 596 |
597 WebViewInternalTerminateFunction::~WebViewInternalTerminateFunction() { | 597 WebViewInternalTerminateFunction::~WebViewInternalTerminateFunction() { |
598 } | 598 } |
599 | 599 |
600 bool WebViewInternalTerminateFunction::RunAsyncSafe(WebViewGuest* guest) { | 600 bool WebViewInternalTerminateFunction::RunAsyncSafe(WebViewGuest* guest) { |
601 guest->Terminate(); | 601 guest->Terminate(); |
602 return true; | 602 return true; |
603 } | 603 } |
604 | 604 |
605 } // namespace extensions | 605 } // namespace extensions |
OLD | NEW |