| 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 "extensions/browser/api/guest_view/web_view/web_view_internal_api.h" | 5 #include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "extensions/common/user_script.h" | 26 #include "extensions/common/user_script.h" |
| 27 #include "third_party/WebKit/public/web/WebFindOptions.h" | 27 #include "third_party/WebKit/public/web/WebFindOptions.h" |
| 28 | 28 |
| 29 using content::WebContents; | 29 using content::WebContents; |
| 30 using extensions::ExtensionResource; | 30 using extensions::ExtensionResource; |
| 31 using extensions::api::web_view_internal::ContentScriptDetails; | 31 using extensions::api::web_view_internal::ContentScriptDetails; |
| 32 using extensions::api::web_view_internal::InjectionItems; | 32 using extensions::api::web_view_internal::InjectionItems; |
| 33 using extensions::api::web_view_internal::SetPermission::Params; | 33 using extensions::api::web_view_internal::SetPermission::Params; |
| 34 using extensions::api::extension_types::InjectDetails; | 34 using extensions::api::extension_types::InjectDetails; |
| 35 using extensions::UserScript; | 35 using extensions::UserScript; |
| 36 using ui_zoom::ZoomController; | 36 using zoom::ZoomController; |
| 37 // error messages for content scripts: | 37 // error messages for content scripts: |
| 38 namespace errors = extensions::manifest_errors; | 38 namespace errors = extensions::manifest_errors; |
| 39 namespace web_view_internal = extensions::api::web_view_internal; | 39 namespace web_view_internal = extensions::api::web_view_internal; |
| 40 | 40 |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 const char kAppCacheKey[] = "appcache"; | 43 const char kAppCacheKey[] = "appcache"; |
| 44 const char kCacheKey[] = "cache"; | 44 const char kCacheKey[] = "cache"; |
| 45 const char kCookiesKey[] = "cookies"; | 45 const char kCookiesKey[] = "cookies"; |
| 46 const char kFileSystemsKey[] = "fileSystems"; | 46 const char kFileSystemsKey[] = "fileSystems"; |
| (...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 // Will finish asynchronously. | 962 // Will finish asynchronously. |
| 963 return true; | 963 return true; |
| 964 } | 964 } |
| 965 | 965 |
| 966 void WebViewInternalClearDataFunction::ClearDataDone() { | 966 void WebViewInternalClearDataFunction::ClearDataDone() { |
| 967 Release(); // Balanced in RunAsync(). | 967 Release(); // Balanced in RunAsync(). |
| 968 SendResponse(true); | 968 SendResponse(true); |
| 969 } | 969 } |
| 970 | 970 |
| 971 } // namespace extensions | 971 } // namespace extensions |
| OLD | NEW |