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 #ifndef EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "extensions/browser/api/capture_web_contents_function.h" | 11 #include "extensions/browser/api/capture_web_contents_function.h" |
9 #include "extensions/browser/api/execute_code_function.h" | 12 #include "extensions/browser/api/execute_code_function.h" |
10 #include "extensions/browser/extension_function.h" | 13 #include "extensions/browser/extension_function.h" |
11 #include "extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.h" | 14 #include "extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.h" |
12 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 15 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
13 | 16 |
14 // WARNING: WebViewInternal could be loaded in an unblessed context, thus any | 17 // WARNING: WebViewInternal could be loaded in an unblessed context, thus any |
15 // new APIs must extend WebViewInternalExtensionFunction or | 18 // new APIs must extend WebViewInternalExtensionFunction or |
16 // WebViewInternalExecuteCodeFunction which do a process ID check to prevent | 19 // WebViewInternalExecuteCodeFunction which do a process ID check to prevent |
17 // abuse by normal renderer processes. | 20 // abuse by normal renderer processes. |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 | 440 |
438 WebViewInternalClearDataFunction(); | 441 WebViewInternalClearDataFunction(); |
439 | 442 |
440 protected: | 443 protected: |
441 ~WebViewInternalClearDataFunction() override; | 444 ~WebViewInternalClearDataFunction() override; |
442 | 445 |
443 private: | 446 private: |
444 // WebViewInternalExtensionFunction implementation. | 447 // WebViewInternalExtensionFunction implementation. |
445 bool RunAsyncSafe(WebViewGuest* guest) override; | 448 bool RunAsyncSafe(WebViewGuest* guest) override; |
446 | 449 |
447 uint32 GetRemovalMask(); | 450 uint32_t GetRemovalMask(); |
448 void ClearDataDone(); | 451 void ClearDataDone(); |
449 | 452 |
450 // Removal start time. | 453 // Removal start time. |
451 base::Time remove_since_; | 454 base::Time remove_since_; |
452 // Removal mask, corresponds to StoragePartition::RemoveDataMask enum. | 455 // Removal mask, corresponds to StoragePartition::RemoveDataMask enum. |
453 uint32 remove_mask_; | 456 uint32_t remove_mask_; |
454 // Tracks any data related or parse errors. | 457 // Tracks any data related or parse errors. |
455 bool bad_message_; | 458 bool bad_message_; |
456 | 459 |
457 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); | 460 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); |
458 }; | 461 }; |
459 | 462 |
460 } // namespace extensions | 463 } // namespace extensions |
461 | 464 |
462 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 465 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
OLD | NEW |