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

Unified Diff: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/api/guest_view/guest_view_internal_api.cc ('k') | extensions/browser/api/hid/hid_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
diff --git a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
index 89d25ed31fe237e25df37cb2bf5c09934b8b182b..cee2f5ea0b9c61505800981b0fec2a3909eb1101 100644
--- a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
+++ b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
@@ -25,15 +25,15 @@
using content::WebContents;
using extensions::ExtensionResource;
-using extensions::core_api::web_view_internal::ContentScriptDetails;
-using extensions::core_api::web_view_internal::InjectionItems;
-using extensions::core_api::web_view_internal::SetPermission::Params;
-using extensions::core_api::extension_types::InjectDetails;
+using extensions::api::web_view_internal::ContentScriptDetails;
+using extensions::api::web_view_internal::InjectionItems;
+using extensions::api::web_view_internal::SetPermission::Params;
+using extensions::api::extension_types::InjectDetails;
using extensions::UserScript;
using ui_zoom::ZoomController;
// error messages for content scripts:
namespace errors = extensions::manifest_errors;
-namespace web_view_internal = extensions::core_api::web_view_internal;
+namespace web_view_internal = extensions::api::web_view_internal;
namespace {
@@ -156,14 +156,14 @@ bool ParseContentScript(const ContentScriptDetails& script_value,
if (script_value.run_at) {
UserScript::RunLocation run_at = UserScript::UNDEFINED;
switch (script_value.run_at) {
- case extensions::core_api::extension_types::RUN_AT_NONE:
- case extensions::core_api::extension_types::RUN_AT_DOCUMENT_IDLE:
+ case extensions::api::extension_types::RUN_AT_NONE:
+ case extensions::api::extension_types::RUN_AT_DOCUMENT_IDLE:
run_at = UserScript::DOCUMENT_IDLE;
break;
- case extensions::core_api::extension_types::RUN_AT_DOCUMENT_START:
+ case extensions::api::extension_types::RUN_AT_DOCUMENT_START:
run_at = UserScript::DOCUMENT_START;
break;
- case extensions::core_api::extension_types::RUN_AT_DOCUMENT_END:
+ case extensions::api::extension_types::RUN_AT_DOCUMENT_END:
run_at = UserScript::DOCUMENT_END;
break;
}
@@ -744,13 +744,13 @@ bool WebViewInternalSetPermissionFunction::RunAsyncSafe(WebViewGuest* guest) {
WebViewPermissionHelper::PermissionResponseAction action =
WebViewPermissionHelper::DEFAULT;
switch (params->action) {
- case core_api::web_view_internal::SET_PERMISSION_ACTION_ALLOW:
+ case api::web_view_internal::SET_PERMISSION_ACTION_ALLOW:
action = WebViewPermissionHelper::ALLOW;
break;
- case core_api::web_view_internal::SET_PERMISSION_ACTION_DENY:
+ case api::web_view_internal::SET_PERMISSION_ACTION_DENY:
action = WebViewPermissionHelper::DENY;
break;
- case core_api::web_view_internal::SET_PERMISSION_ACTION_DEFAULT:
+ case api::web_view_internal::SET_PERMISSION_ACTION_DEFAULT:
break;
default:
NOTREACHED();
« no previous file with comments | « extensions/browser/api/guest_view/guest_view_internal_api.cc ('k') | extensions/browser/api/hid/hid_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698