cef/libcef/common
Marshall Greenblatt 8f240861e3 Implement NetworkService request interception/handling (see issue #2622).
Implementation notes:
- Chromium change: CookieMonster::SetCookieableSchemes needs to be called
  immediately after the CookieMonster is created in NetworkContext::
  ApplyContextParamsToBuilder. Add a Profile::GetCookieableSchemes method and
  NetworkContextParams.cookieable_schemes member (set from
  ProfileNetworkContextService::CreateNetworkContextParams) to support that.
- Chromium change: Add a ContentBrowserClient::HandleExternalProtocol variant
  that exposes additional NetworkService request information.
- GetResourceResponseFilter is not yet implemented.

API changes:
- Resource-related callbacks have been moved from CefRequestHandler to a new
  CefResourceRequestHandler interface which is returned via the
  GetResourceRequestHandler method. If the CefRequestHandler declines to handle
  a resource it can optionally be handled by the CefRequestContextHandler, if
  any, associated with the loading context.
- The OnProtocolExecution callback has been moved from CefRequestHandler to
  CefResourceRequestHandler and will be called if a custom scheme request is
  unhandled.
- Cookie send/save permission callbacks have been moved from CefRequestHandler
  and CefResourceHandler to CefResourceRequestHandler.
- New methods added to CefResourceHandler that better match NetworkService
  execution sequence expectations. The old methods are now deprecated.
- New methods added to CefRequest and CefResponse.

Known behavior changes with the NetworkService implementation:
- Modifying the |new_url| parameter in OnResourceRedirect will no longer result
  in the method being called an additional time (likely a bug in the old
  implementation).
- Modifying the request URL in OnResourceResponse would previously cause a
  redirect. This behavior is now deprecated because the NetworkService does not
  support this functionality when using default network loaders. Temporary
  support has been added in combination with CefResourceHandler usage only.
- Other changes to the request object in OnResourceResponse will now cause the
  request to be restarted. This means that OnBeforeResourceLoad, etc, will be
  called an additional time with the new request information.
- CefResponse::GetMimeType will now be empty for non-200 responses.
- Requests using custom schemes can now be handled via CefResourceRequestHandler
  with the same callback behavior as builtin schemes.
- Redirects of custom scheme requests will now be followed as expected.
- Default handling of builtin schemes can now be disabled by setting
  |disable_default_handling| to true in GetResourceRequestHandler.
- Unhandled requests (custom scheme or builtin scheme with default handling
  disabled) will fail with an CefResponse::GetError value of
  ERR_UNKNOWN_URL_SCHEME.
- The CefSchemeHandlerFactory::Create callback will now include cookie headers.

To test:
- Run `cefclient --enable-network-service`. All resources should load
  successfully (this tests the transparent proxy capability).
- All tests pass with NetworkService disabled.
- The following tests pass with NetworkService enabled:
  - CookieTest.*
  - FrameTest.* (excluding .*Nav)
  - NavigationTest.* (excluding .Redirect*)
  - RequestHandlerTest.*
  - RequestContextTest.Basic*
  - RequestContextTest.Popup*
  - RequestTest.*
  - ResourceManagerTest.*
  - ResourceRequestHandlerTest.* (excluding .Filter*)
  - SchemeHandlerTest.*
  - StreamResourceHandlerTest.*
2019-04-23 22:53:28 -04:00
..
extensions Update to Chromium version 71.0.3578.0 (#599034) 2018-10-25 12:57:05 -04:00
net Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
net_service Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
service_manifests Update to Chromium version 74.0.3706.0 (#632463) 2019-02-25 12:09:54 -05:00
test Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
base_impl.cc Update to Chromium version 72.0.3615.0 (#609159) 2018-12-04 14:45:37 -05:00
cef_crash_report_upload_thread.cc Update to Chromium revision 9ef2aa86 (#550428) 2018-05-04 10:50:26 +02:00
cef_crash_report_upload_thread.h Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
cef_crash_report_utils.cc Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
cef_crash_report_utils.h Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
cef_message_generator.cc Update to Chromium version 72.0.3626.0 (#612437) 2018-12-26 19:15:28 +02:00
cef_message_generator.h Depend directly on chrome targets and unfork code (issue #1947) 2016-07-15 21:17:44 -04:00
cef_messages.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_messages.h Update to Chromium version 71.0.3578.0 (#599034) 2018-10-25 12:57:05 -04:00
cef_switches.cc Add initial NetworkService support (see issue #2622). 2019-03-24 16:43:56 -04:00
cef_switches.h Add initial NetworkService support (see issue #2622). 2019-03-24 16:43:56 -04:00
command_line_impl.cc Update to Chromium version 74.0.3706.0 (#632463) 2019-02-25 12:09:54 -05:00
command_line_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
content_client.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
content_client.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
crash_reporter_client.cc Update to Chromium version 73.0.3679.0 (#624510) 2019-02-01 16:42:40 +00:00
crash_reporter_client.h Update to Chromium version 68.0.3433.0 (#559327) 2018-05-22 17:03:01 +03:00
crash_reporting.cc Update to Chromium version 74.0.3706.0 (#632463) 2019-02-25 12:09:54 -05:00
crash_reporting.h Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
drag_data_impl.cc Windows: Fix crashes when dragging an image with OSR enabled (issue #2525) 2018-10-10 14:44:23 +03:00
drag_data_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
file_util_impl.cc Add CefScopedTempDir and file utility functions for unit tests (issue #1632) 2016-11-15 13:47:44 -05:00
json_impl.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
main_delegate.cc Add initial NetworkService support (see issue #2622). 2019-03-24 16:43:56 -04:00
main_delegate.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
parser_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
process_message_impl.cc Move matching h file to top of header list (issue #2171) 2017-05-19 11:11:18 +02:00
process_message_impl.h Update to Chromium revision 40af916d (#303546). 2014-11-12 19:25:15 +00:00
request_impl.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
request_impl.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
resource_bundle_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
resource_bundle_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
response_impl.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
response_impl.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
response_manager.cc Update to Chromium version 72.0.3615.0 (#609159) 2018-12-04 14:45:37 -05:00
response_manager.h Update to Chromium revision ff259bab (#488528) 2017-07-28 18:30:34 -04:00
scheme_registrar_impl.cc Replace AddCustomScheme bool arguments with int using bit flags 2019-02-26 16:45:12 +00:00
scheme_registrar_impl.h Replace AddCustomScheme bool arguments with int using bit flags 2019-02-26 16:45:12 +00:00
string_list_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
string_map_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
string_multimap_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
string_types_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
task_impl.cc Update to Chromium revision fa6a5d87 (#499098) 2017-09-07 17:29:47 -04:00
task_runner_impl.cc Update to Chromium version 72.0.3599.0 (#604791) 2018-11-05 13:31:55 -05:00
task_runner_impl.h Fix task runner checking 2017-09-21 14:23:02 +02:00
thread_impl.cc Update to Chromium version 73.0.3665.0 (#620590) 2019-01-18 11:25:51 +01:00
thread_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
time_impl.cc Update to Chromium revision ad51088c (#444943) 2017-01-24 16:53:09 -05:00
time_util.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
tracker.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
tracker.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
urlrequest_impl.cc Fix task runner checking 2017-09-21 14:23:02 +02:00
util_mac.h macOS: Add support for and enable the V2 sandbox (issue #2459) 2018-07-27 22:33:31 -04:00
util_mac.mm macOS: Add support for and enable the V2 sandbox (issue #2459) 2018-07-27 22:33:31 -04:00
value_base.cc Update to Chromium version 69.0.3464.0 (#567918) 2018-06-19 15:49:32 -04:00
value_base.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
values_impl.cc Update to Chromium version 75.0.3749.0 (#645082) 2019-04-16 14:38:48 +00:00
values_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
waitable_event_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
waitable_event_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
widevine_loader.cc Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
widevine_loader.h Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00