summaryrefslogtreecommitdiffstats
path: root/chrome/common/local_discovery
Commit message (Collapse)AuthorAgeFilesLines
* Revert of Revert of Move service_discovery_client_impl.* into ↵machenbach@chromium.org2014-04-284-0/+1558
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chrome/common. (https://codereview.chromium.org/250793011/) Reason for revert: Reland original patch. The revert didn't solve the sizes regression. Original issue's description: > 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 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266535 TBR=thestig@chromium.org,vitalybuka@chromium.org NOTREECHECKS=true NOTRY=true BUG=349645 Review URL: https://codereview.chromium.org/252023003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266560 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Move service_discovery_client_impl.* into chrome/common. ↵machenbach@chromium.org2014-04-284-1558/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | (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
* Move service_discovery_client_impl.* into chrome/common.vitalybuka@chromium.org2014-04-284-0/+1558
| | | | | | | | | | It's need to be used by utility and browser processes. BUG=349645 Review URL: https://codereview.chromium.org/256923003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266487 0039d316-1c4b-4281-b951-d872f2087c98
* Remove CreatePlatformFile from content shell.rvargas@chromium.org2014-03-151-1/+5
| | | | | | | | BUG=322664 Review URL: https://codereview.chromium.org/184003002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257251 0039d316-1c4b-4281-b951-d872f2087c98
* Use validating form of IPC enum macros for local discovery messages.tsepez@chromium.org2014-02-072-6/+13
| | | | | | | | | | | This is part of a long-running background task to remove the remaining uses of the unchecked IPC_ENUM_TRAITS() macro. BUG=246708 Review URL: https://codereview.chromium.org/157013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249560 0039d316-1c4b-4281-b951-d872f2087c98
* Add "actively refresh services" method to ServiceDiscoveryClientnoamsml@chromium.org2014-01-302-0/+7
| | | | | | | | | | | Add method to ServiceDiscoveryClient that will allow it to actively refresh stale services when their TTL runs out. BUG=336883 Review URL: https://codereview.chromium.org/141583010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247857 0039d316-1c4b-4281-b951-d872f2087c98
* Use all interfaces for mdns. Instead of one IPv4 and one IPv6 sockets mdns ↵vitalybuka@chromium.org2013-12-101-3/+29
| | | | | | | | | | | | | | uses one socket per network interface and IP protocol. Windows version enumerate network interfaces during pre-sandbox initialization in Utility process. It creates and store socket pert interface and IP protocols version. Late these sockets will be used be MDnsSocketFactory implementation. Linux version enumerates network in browser process before starting utility process. Then sockets will be sent by IPC to utility process and used by MDnsSocketFactory implementation. BUG=319068 Review URL: https://codereview.chromium.org/101083003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239751 0039d316-1c4b-4281-b951-d872f2087c98
* Notify browser process if binding failed or process crash.vitalybuka@chromium.org2013-09-251-0/+3
| | | | | | | | | | | Try rebind several time. Rebinding usually fails some time after network change event. BUG=297212 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/23830011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225148 0039d316-1c4b-4281-b951-d872f2087c98
* Added cache flush on network change to ServiceDiscoveryHostClientnoamsml@chromium.org2013-09-071-1/+2
| | | | | | | | | | | ServiceDiscoveryHostClient now listens for IP address changes (and, by extension, sleep/wake) and flushes the cache and resets the utility process. BUG=284673 Review URL: https://chromiumcodereview.appspot.com/23851008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221914 0039d316-1c4b-4281-b951-d872f2087c98
* Listen for mDns traffic in setuid sandboxed Utility process.vitalybuka@chromium.org2013-09-011-0/+7
| | | | | | | | | | | | | | Local discovery listens for mDns traffic inside Utility process with enabled setuid sandbox (seccomp-BPF is not enabled). Setuid sandbox fails ::socket calls. To overcome this we use LocalDiscoveryMsg_SetSockets IPC message to pass two new UDP sockets created in browser process. These sockets will be provided for net::MDnsClient using net::PlatformSocketFactory. Added check to make sure that only Local Discovery Utility process handles LocalDiscovery* IPC messages. This code, as well as Windows version, is not executed without --enable-device-discovery switch. BUG=277654 Review URL: https://chromiumcodereview.appspot.com/23482003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220760 0039d316-1c4b-4281-b951-d872f2087c98
* Make local domain resolver send both ipv4 and ipv6 addressesnoamsml@chromium.org2013-08-242-3/+6
| | | | | | | | | | | Make local domain resolver send both ipv4 and ipv6 addresses, and make the asynchronous HTTP factory prefer ipv4 to ipv6. BUG= Review URL: https://chromiumcodereview.appspot.com/23171031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219457 0039d316-1c4b-4281-b951-d872f2087c98
* Fix deadlock and DCHECK issues when shutting down local discovery processnoamsml@chromium.org2013-08-161-0/+4
| | | | | | | | | | | | | | | | | | | 1. Fix deadlock in local discovery process by introducing separate shutdown step for local discovery. 2. Fix DCHECK error in local discovery process by shutting down MDns on the IO thread. 3. Remove and then disable failing DHECKs requiring the service discovery prcoess host to be shut down on its owning thread, as we cannot guarantee that easily, and it is safe to shut it down on the IO thread so long as it has no listeners (for which there are DCHECKs). BUG= Review URL: https://chromiumcodereview.appspot.com/22021004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217910 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for local domain resolution in ServiceDiscoveryHostClientnoamsml@chromium.org2013-07-241-0/+18
| | | | | | | | | | | | | Add support for local domain resolution in ServiceDiscoveryHostClient and ServiceDiscoveryMessageHandler. This will allow the browser process to resolve A and AAAA records for "*.local" domains. This does not yet include support for resolving domains through the default domain resolver. BUG= Review URL: https://chromiumcodereview.appspot.com/19924004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213523 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor LocalDomainResolver into interface and implementationnoamsml@chromium.org2013-07-231-0/+17
| | | | | | | | | | | | Refactor LocalDomainResolver to separate the interface and move it into ServiceDiscoveryClient. This is part of adding multiprocess support for local domain resolution. BUG= Review URL: https://chromiumcodereview.appspot.com/19540023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213212 0039d316-1c4b-4281-b951-d872f2087c98
* Run local discovery code in utility process.vitalybuka@chromium.org2013-07-181-0/+65
| | | | | | | | BUG=245391 Review URL: https://chromiumcodereview.appspot.com/19284005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212447 0039d316-1c4b-4281-b951-d872f2087c98
* Removed return result from ServiceResolver::StartResolving.vitalybuka@chromium.org2013-07-151-4/+4
| | | | | | | | BUG=245391 Review URL: https://chromiumcodereview.appspot.com/19149002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211657 0039d316-1c4b-4281-b951-d872f2087c98
* Simplified service discovery client common interface.vitalybuka@chromium.org2013-07-151-28/+4
| | | | | | | | | | | | Delegate replaced with callback. Removed unrequied methods. BUG=245391 TBR=gene Review URL: https://chromiumcodereview.appspot.com/18855011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211616 0039d316-1c4b-4281-b951-d872f2087c98
* Moved local discover code to chrome/utility for sandboxing.vitalybuka@chromium.org2013-07-043-0/+171
BUG=245391 Review URL: https://chromiumcodereview.appspot.com/18568002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210179 0039d316-1c4b-4281-b951-d872f2087c98