cefclient: Mac: Reduce helper process file dependencies (issue #1500)

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@2010 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2015-01-30 19:34:58 +00:00
parent c6f8c63a45
commit 16b3817b82
4 changed files with 21 additions and 26 deletions

View File

@ -191,6 +191,7 @@
'tests/cefclient/root_window_manager.h', 'tests/cefclient/root_window_manager.h',
'tests/cefclient/scheme_test.cc', 'tests/cefclient/scheme_test.cc',
'tests/cefclient/scheme_test.h', 'tests/cefclient/scheme_test.h',
'tests/cefclient/scheme_test_common.cc',
'tests/cefclient/temp_window.h', 'tests/cefclient/temp_window.h',
'tests/cefclient/test_runner.cc', 'tests/cefclient/test_runner.cc',
'tests/cefclient/test_runner.h', 'tests/cefclient/test_runner.h',
@ -241,38 +242,19 @@
'tests/cefclient/window_test_mac.mm', 'tests/cefclient/window_test_mac.mm',
], ],
'cefclient_sources_mac_helper': [ 'cefclient_sources_mac_helper': [
'tests/cefclient/binding_test.cc',
'tests/cefclient/binding_test.h',
'tests/cefclient/client_app.cc', 'tests/cefclient/client_app.cc',
'tests/cefclient/client_app.h', 'tests/cefclient/client_app.h',
'tests/cefclient/client_app_delegates.cc', 'tests/cefclient/client_app_delegates.cc',
'tests/cefclient/client_handler.cc',
'tests/cefclient/client_handler.h',
'tests/cefclient/client_renderer.cc', 'tests/cefclient/client_renderer.cc',
'tests/cefclient/client_renderer.h', 'tests/cefclient/client_renderer.h',
'tests/cefclient/client_switches.cc', 'tests/cefclient/client_switches.cc',
'tests/cefclient/client_switches.h', 'tests/cefclient/client_switches.h',
'tests/cefclient/dialog_test.cc',
'tests/cefclient/dialog_test.h',
'tests/cefclient/main_context.cc',
'tests/cefclient/main_context.h',
'tests/cefclient/main_message_loop.cc',
'tests/cefclient/main_message_loop.h',
'tests/cefclient/performance_test.cc', 'tests/cefclient/performance_test.cc',
'tests/cefclient/performance_test.h', 'tests/cefclient/performance_test.h',
'tests/cefclient/performance_test_setup.h', 'tests/cefclient/performance_test_setup.h',
'tests/cefclient/performance_test_tests.cc', 'tests/cefclient/performance_test_tests.cc',
'tests/cefclient/process_helper_mac.cc', 'tests/cefclient/process_helper_mac.cc',
'tests/cefclient/resource_util.h', 'tests/cefclient/scheme_test_common.cc',
'tests/cefclient/resource_util_mac.mm',
'tests/cefclient/resource_util_posix.cc',
'tests/cefclient/scheme_test.cc',
'tests/cefclient/scheme_test.h',
'tests/cefclient/test_runner.cc',
'tests/cefclient/test_runner.h',
'tests/cefclient/window_test.cc',
'tests/cefclient/window_test.h',
'tests/cefclient/window_test_mac.mm',
], ],
'cefclient_bundle_resources_mac': [ 'cefclient_bundle_resources_mac': [
'tests/cefclient/mac/cefclient.icns', 'tests/cefclient/mac/cefclient.icns',

View File

@ -147,11 +147,6 @@ class ClientSchemeHandlerFactory : public CefSchemeHandlerFactory {
} // namespace } // namespace
void RegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar,
std::vector<CefString>& cookiable_schemes) {
registrar->AddCustomScheme("client", true, false, false);
}
void RegisterSchemeHandlers() { void RegisterSchemeHandlers() {
CefRegisterSchemeHandlerFactory("client", "tests", CefRegisterSchemeHandlerFactory("client", "tests",
new ClientSchemeHandlerFactory()); new ClientSchemeHandlerFactory());

View File

@ -19,7 +19,7 @@ namespace scheme_test {
void RegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar, void RegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar,
std::vector<CefString>& cookiable_schemes); std::vector<CefString>& cookiable_schemes);
// Create the scheme handler. // Create the scheme handler. Called from both the browser and renderer process.
void RegisterSchemeHandlers(); void RegisterSchemeHandlers();
} // namespace scheme_test } // namespace scheme_test

View File

@ -0,0 +1,18 @@
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "cefclient/scheme_test.h"
#include "include/cef_scheme.h"
namespace client {
namespace scheme_test {
void RegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar,
std::vector<CefString>& cookiable_schemes) {
registrar->AddCustomScheme("client", true, false, false);
}
} // namespace scheme_test
} // namespace client