Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2070)

Unified Diff: chrome/browser/local_discovery/privet_device_lister_impl.cc

Issue 1553333002: Move cloud print specific files out of local_discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveprn
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/local_discovery/privet_device_lister_impl.cc
diff --git a/chrome/browser/local_discovery/privet_device_lister_impl.cc b/chrome/browser/local_discovery/privet_device_lister_impl.cc
deleted file mode 100644
index 0c3ee1a04530fda8380a3ba951e1383d556a8eda..0000000000000000000000000000000000000000
--- a/chrome/browser/local_discovery/privet_device_lister_impl.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2013 The Chromium 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 "chrome/browser/local_discovery/privet_device_lister_impl.h"
-
-#include <utility>
-#include <vector>
-
-#include "base/strings/string_util.h"
-#include "base/strings/stringprintf.h"
-#include "chrome/browser/local_discovery/privet_constants.h"
-
-namespace local_discovery {
-
-PrivetDeviceListerImpl::PrivetDeviceListerImpl(
- ServiceDiscoveryClient* service_discovery_client,
- PrivetDeviceLister::Delegate* delegate)
- : delegate_(delegate),
- device_lister_(this, service_discovery_client, kPrivetDefaultDeviceType) {
-}
-
-PrivetDeviceListerImpl::PrivetDeviceListerImpl(
- ServiceDiscoveryClient* service_discovery_client,
- PrivetDeviceLister::Delegate* delegate,
- const std::string& subtype)
- : delegate_(delegate),
- device_lister_(
- this,
- service_discovery_client,
- base::StringPrintf(kPrivetSubtypeTemplate, subtype.c_str())) {
-}
-
-PrivetDeviceListerImpl::~PrivetDeviceListerImpl() {
-}
-
-void PrivetDeviceListerImpl::Start() {
- device_lister_.Start();
-}
-
-void PrivetDeviceListerImpl::DiscoverNewDevices(bool force_update) {
- device_lister_.DiscoverNewDevices(force_update);
-}
-
-void PrivetDeviceListerImpl::OnDeviceChanged(
- bool added, const ServiceDescription& service_description) {
- if (!delegate_)
- return;
-
- delegate_->DeviceChanged(added, service_description.service_name,
- DeviceDescription(service_description));
-}
-
-void PrivetDeviceListerImpl::OnDeviceRemoved(const std::string& service_name) {
- if (delegate_)
- delegate_->DeviceRemoved(service_name);
-}
-
-void PrivetDeviceListerImpl::OnDeviceCacheFlushed() {
- if (delegate_)
- delegate_->DeviceCacheFlushed();
-}
-
-} // namespace local_discovery

Powered by Google App Engine
This is Rietveld 408576698