Revert of Move service_discovery_client_impl.* into chrome/common....

Revert of Move  service_discovery_client_impl.* into chrome/common. (https://codereview.chromium.org/256923003/)

Reason for revert:
[Sheriff] Speculating that this lead to a sizes regression:
https://chromeperf.appspot.com/report?masters=Chromium&bots=chromium-rel-linux-64&tests=sizes&rev=266525&checked=core

Will reland otherwise.

Original issue's description:
> Move  service_discovery_client_impl.* into chrome/common.
> It's need to be used by utility and browser processes.
> 
> BUG=349645
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266487

TBR=thestig@chromium.org,vitalybuka@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=349645

Review URL: https://codereview.chromium.org/250793011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266535 0039d316-1c4b-4281-b951-d872f2087c98
parent 94c16dc2
specific_include_rules = {
# For tests, it's fine to include utility process code.
'test_service_discovery_client\.cc': [
"+chrome/utility/local_discovery/service_discovery_client_impl.h"
],
}
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "chrome/browser/local_discovery/test_service_discovery_client.h" #include "chrome/browser/local_discovery/test_service_discovery_client.h"
#include "chrome/common/local_discovery/service_discovery_client_impl.h" #include "chrome/utility/local_discovery/service_discovery_client_impl.h"
#include "net/dns/mdns_client_impl.h" #include "net/dns/mdns_client_impl.h"
namespace local_discovery { namespace local_discovery {
......
...@@ -360,6 +360,8 @@ ...@@ -360,6 +360,8 @@
}], }],
['enable_mdns == 1', { ['enable_mdns == 1', {
'sources': [ 'sources': [
'utility/local_discovery/service_discovery_client_impl.cc',
'utility/local_discovery/service_discovery_client_impl.h',
'utility/local_discovery/service_discovery_message_handler.cc', 'utility/local_discovery/service_discovery_message_handler.cc',
'utility/local_discovery/service_discovery_message_handler.h', 'utility/local_discovery/service_discovery_message_handler.h',
] ]
......
...@@ -240,6 +240,8 @@ ...@@ -240,6 +240,8 @@
'common/instant_types.h', 'common/instant_types.h',
'common/localized_error.cc', 'common/localized_error.cc',
'common/localized_error.h', 'common/localized_error.h',
'common/local_discovery/service_discovery_client.cc',
'common/local_discovery/service_discovery_client.h',
'common/logging_chrome.cc', 'common/logging_chrome.cc',
'common/logging_chrome.h', 'common/logging_chrome.h',
'common/mac/app_mode_common.h', 'common/mac/app_mode_common.h',
...@@ -424,18 +426,6 @@ ...@@ -424,18 +426,6 @@
'<(DEPTH)/printing/printing.gyp:printing', '<(DEPTH)/printing/printing.gyp:printing',
], ],
}], }],
['enable_service_discovery==1', {
'sources' : [
'common/local_discovery/service_discovery_client.cc',
'common/local_discovery/service_discovery_client.h',
]
}],
['enable_mdns==1', {
'sources' : [
'common/local_discovery/service_discovery_client_impl.cc',
'common/local_discovery/service_discovery_client_impl.h',
]
}],
['OS=="android"', { ['OS=="android"', {
'sources/': [ 'sources/': [
['exclude', '^common/chrome_version_info_posix.cc'], ['exclude', '^common/chrome_version_info_posix.cc'],
......
...@@ -2161,12 +2161,12 @@ ...@@ -2161,12 +2161,12 @@
}], }],
['enable_mdns == 1', { ['enable_mdns == 1', {
'sources': [ 'sources': [
'utility/local_discovery/local_domain_resolver_unittest.cc',
'utility/local_discovery/service_discovery_client_unittest.cc',
'browser/local_discovery/privet_device_lister_unittest.cc', 'browser/local_discovery/privet_device_lister_unittest.cc',
'browser/local_discovery/privet_notifications_unittest.cc', 'browser/local_discovery/privet_notifications_unittest.cc',
'browser/local_discovery/privet_local_printer_lister_unittest.cc', 'browser/local_discovery/privet_local_printer_lister_unittest.cc',
'browser/local_discovery/storage/privet_filesystem_attribute_cache_unittest.cc', 'browser/local_discovery/storage/privet_filesystem_attribute_cache_unittest.cc',
'common/local_discovery/local_domain_resolver_unittest.cc',
'common/local_discovery/service_discovery_client_unittest.cc',
] ]
}], }],
['configuration_policy==0', { ['configuration_policy==0', {
......
include_rules = [ include_rules = [
"+chrome/browser", "+chrome/browser",
"+chrome/third_party/hunspell/google", "+chrome/third_party/hunspell/google",
"+chrome/utility/local_discovery",
"+content/browser", "+content/browser",
"+content/public/browser", "+content/public/browser",
"+components/breakpad", "+components/breakpad",
......
include_rules = [ include_rules = [
"+chrome/common/local_discovery", "+chrome/utility/local_discovery",
] ]
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include "base/bind.h" #include "base/bind.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h" #include "base/message_loop/message_loop.h"
#include "chrome/common/local_discovery/service_discovery_client_impl.h"
#include "chrome/tools/service_discovery_sniffer/service_discovery_sniffer.h" #include "chrome/tools/service_discovery_sniffer/service_discovery_sniffer.h"
#include "chrome/utility/local_discovery/service_discovery_client_impl.h"
#include "net/dns/mdns_client.h" #include "net/dns/mdns_client.h"
namespace local_discovery { namespace local_discovery {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "chrome/common/local_discovery/service_discovery_client_impl.h" #include "chrome/utility/local_discovery/service_discovery_client_impl.h"
#include "net/dns/mdns_client_impl.h" #include "net/dns/mdns_client_impl.h"
#include "net/dns/mock_mdns_socket_factory.h" #include "net/dns/mock_mdns_socket_factory.h"
#include "testing/gmock/include/gmock/gmock.h" #include "testing/gmock/include/gmock/gmock.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "base/memory/singleton.h" #include "base/memory/singleton.h"
#include "base/message_loop/message_loop_proxy.h" #include "base/message_loop/message_loop_proxy.h"
#include "base/stl_util.h" #include "base/stl_util.h"
#include "chrome/common/local_discovery/service_discovery_client_impl.h" #include "chrome/utility/local_discovery/service_discovery_client_impl.h"
#include "net/dns/dns_protocol.h" #include "net/dns/dns_protocol.h"
#include "net/dns/record_rdata.h" #include "net/dns/record_rdata.h"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROME_COMMON_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ #ifndef CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_
#define CHROME_COMMON_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ #define CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_
#include <map> #include <map>
#include <string> #include <string>
...@@ -270,4 +270,4 @@ class LocalDomainResolverImpl : public LocalDomainResolver { ...@@ -270,4 +270,4 @@ class LocalDomainResolverImpl : public LocalDomainResolver {
} // namespace local_discovery } // namespace local_discovery
#endif // CHROME_COMMON_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ #endif // CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "chrome/common/local_discovery/service_discovery_client_impl.h" #include "chrome/utility/local_discovery/service_discovery_client_impl.h"
#include "net/base/net_errors.h" #include "net/base/net_errors.h"
#include "net/dns/dns_protocol.h" #include "net/dns/dns_protocol.h"
#include "net/dns/mdns_client_impl.h" #include "net/dns/mdns_client_impl.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "base/lazy_instance.h" #include "base/lazy_instance.h"
#include "chrome/common/local_discovery/local_discovery_messages.h" #include "chrome/common/local_discovery/local_discovery_messages.h"
#include "chrome/common/local_discovery/service_discovery_client_impl.h" #include "chrome/utility/local_discovery/service_discovery_client_impl.h"
#include "content/public/utility/utility_thread.h" #include "content/public/utility/utility_thread.h"
#include "net/socket/socket_descriptor.h" #include "net/socket/socket_descriptor.h"
#include "net/udp/datagram_server_socket.h" #include "net/udp/datagram_server_socket.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment