cef/tests/cefclient/browser
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
..
binding_test.cc Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
binding_test.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
browser_window.cc Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
browser_window.h Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
browser_window_osr_gtk.cc cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
browser_window_osr_gtk.h cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
browser_window_osr_mac.h macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
browser_window_osr_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
browser_window_osr_win.cc Windows: Use WS_EX_NOACTIVATE to control initial window activation (issue #1856) 2019-02-07 16:38:26 -05:00
browser_window_osr_win.h cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
browser_window_std_gtk.cc Linux: cefclient: Fix crash when creating popup window (issue #1006) 2018-10-10 13:41:34 +03:00
browser_window_std_gtk.h Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
browser_window_std_mac.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
browser_window_std_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
browser_window_std_win.cc Windows: Use WS_EX_NOACTIVATE to control initial window activation (issue #1856) 2019-02-07 16:38:26 -05:00
browser_window_std_win.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
bytes_write_handler.cc Windows: Fix crashes when dragging an image with OSR enabled (issue #2525) 2018-10-10 14:44:23 +03:00
bytes_write_handler.h cefclient: Organize source files into directories by target process (browser, renderer, common) (issue #1500). 2015-01-31 00:55:56 +00:00
client_app_delegates_browser.cc Improve crashpad integration (issue #1995) 2017-01-10 18:40:31 -05:00
client_browser.cc Add multi-touch support for OSR (issue #1059) 2019-02-26 11:51:33 -05:00
client_browser.h Improve crashpad integration (issue #1995) 2017-01-10 18:40:31 -05:00
client_handler.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
client_handler.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
client_handler_osr.cc cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
client_handler_osr.h cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
client_handler_std.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
client_handler_std.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
client_types.h macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
dialog_handler_gtk.cc Linux: Add missing return statement (issue #2014) 2018-09-25 13:23:40 +02:00
dialog_handler_gtk.h Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
dialog_test.cc Enforce cache_path requirements for NetworkService (see issue #2622). 2019-03-24 16:47:00 -04:00
dialog_test.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
drm_test.cc Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
drm_test.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
image_cache.cc Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
image_cache.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
main_context.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
main_context.h Add multi-touch support for OSR (issue #1059) 2019-02-26 11:51:33 -05:00
main_context_impl.cc Add multi-touch support for OSR (issue #1059) 2019-02-26 11:51:33 -05:00
main_context_impl.h Add multi-touch support for OSR (issue #1059) 2019-02-26 11:51:33 -05:00
main_context_impl_posix.cc Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
main_context_impl_win.cc Windows: cefclient: Create a new D3D11 device for each browser (issue #2538) 2018-11-15 15:42:53 -05:00
main_message_loop_multithreaded_gtk.cc Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
main_message_loop_multithreaded_gtk.h Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
main_message_loop_multithreaded_win.cc Windows: Wait for WM_NCDESTROY before calling OnBeforeClose (issue #2248) 2017-08-31 18:10:51 -04:00
main_message_loop_multithreaded_win.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
osr_accessibility_helper.cc cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
osr_accessibility_helper.h cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
osr_accessibility_node.cc cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
osr_accessibility_node.h macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
osr_accessibility_node_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
osr_accessibility_node_win.cc cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
osr_d3d11_win.cc cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_d3d11_win.h cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_dragdrop_events.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
osr_dragdrop_win.cc Update to Chromium revision 5fdc0fab (#520840) 2017-12-14 15:31:07 -05:00
osr_dragdrop_win.h Update to Chromium revision 5fdc0fab (#520840) 2017-12-14 15:31:07 -05:00
osr_ime_handler_win.cc Update to Chromium revision 5fdc0fab (#520840) 2017-12-14 15:31:07 -05:00
osr_ime_handler_win.h Update to Chromium revision 5fdc0fab (#520840) 2017-12-14 15:31:07 -05:00
osr_render_handler_win.cc cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_render_handler_win.h cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_render_handler_win_d3d11.cc Windows: cefclient: Create a new D3D11 device for each browser (issue #2538) 2018-11-15 15:42:53 -05:00
osr_render_handler_win_d3d11.h cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_render_handler_win_gl.cc cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_render_handler_win_gl.h cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_renderer.cc cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_renderer.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
osr_renderer_settings.h cefclient: Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-27 10:32:05 +02:00
osr_window_win.cc cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
osr_window_win.h cefclient: OSR accessibility enhancements (see issue #2604) 2019-03-21 16:56:06 +00:00
preferences_test.cc Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
preferences_test.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
print_handler_gtk.cc Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
print_handler_gtk.h Linux: Don't pass NULL CefBrowser to PrintHandler::GetPdfPaperSize (issue #2199) 2017-06-17 12:49:41 +03:00
resource.h Add support for muting audio in the browser (issue #1806) 2019-02-26 16:44:17 +00:00
resource_util_linux.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
resource_util_win_idmap.cc Update to Chromium revision 5fdc0fab (#520840) 2017-12-14 15:31:07 -05:00
response_filter_test.cc Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
response_filter_test.h Add support for response filtering (issue #515). 2015-12-08 13:47:52 -05:00
root_window.cc cefclient: Fix new window always on top (issue #1468) 2018-11-05 13:38:41 -05:00
root_window.h macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
root_window_create.cc Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
root_window_gtk.cc Add support for muting audio in the browser (issue #1806) 2019-02-26 16:44:17 +00:00
root_window_gtk.h Windows: Fix hidden dropdowns when the window is topmost (issue #1468) 2018-10-09 12:28:13 +03:00
root_window_mac.h macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
root_window_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
root_window_manager.cc Enforce cache_path requirements for NetworkService (see issue #2622). 2019-03-24 16:47:00 -04:00
root_window_manager.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
root_window_views.cc Windows: Fix hidden dropdowns when the window is topmost (issue #1468) 2018-10-09 12:28:13 +03:00
root_window_views.h Windows: Fix hidden dropdowns when the window is topmost (issue #1468) 2018-10-09 12:28:13 +03:00
root_window_win.cc Windows: Fix focus assignment after dismissing JS dialogs (issue #2584) 2019-02-11 17:26:12 -05:00
root_window_win.h Windows: Fix hidden dropdowns when the window is topmost (issue #1468) 2018-10-09 12:28:13 +03:00
scheme_test.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
scheme_test.h cefclient: Fix/improve source code documentation (issue #1500). 2015-02-02 23:18:16 +00:00
server_test.cc Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
server_test.h Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
temp_window.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
temp_window_mac.h macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
temp_window_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
temp_window_win.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
temp_window_win.h Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
temp_window_x11.cc Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
temp_window_x11.h Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
test_runner.cc Add support for muting audio in the browser (issue #1806) 2019-02-26 16:44:17 +00:00
test_runner.h Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
text_input_client_osr_mac.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
text_input_client_osr_mac.mm Move matching h file to top of header list (issue #2171) 2017-05-19 11:11:18 +02:00
urlrequest_test.cc Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
urlrequest_test.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
util_gtk.cc Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
util_gtk.h Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
views_menu_bar.cc Update to Chromium version 72.0.3615.0 (#609159) 2018-12-04 14:45:37 -05:00
views_menu_bar.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
views_style.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
views_style.h views: Support styling of menus (issue #2102) 2017-02-28 12:17:47 -05:00
views_window.cc Add support for muting audio in the browser (issue #1806) 2019-02-26 16:44:17 +00:00
views_window.h Windows: Fix hidden dropdowns when the window is topmost (issue #1468) 2018-10-09 12:28:13 +03:00
window_test.cc Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
window_test.h Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
window_test_runner.cc Add unittests target to the binary distribution (issue #1632) 2016-11-18 03:19:17 -05:00
window_test_runner.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
window_test_runner_gtk.cc Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
window_test_runner_gtk.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
window_test_runner_mac.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
window_test_runner_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
window_test_runner_views.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
window_test_runner_views.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
window_test_runner_win.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
window_test_runner_win.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00