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

Side by Side Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h

Issue 23851008: Added cache flush on network change to ServiceDiscoveryHostClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 virtual void OnPrivetRegisterDone( 68 virtual void OnPrivetRegisterDone(
69 PrivetRegisterOperation* operation, 69 PrivetRegisterOperation* operation,
70 const std::string& device_id) OVERRIDE; 70 const std::string& device_id) OVERRIDE;
71 71
72 // PrivetDeviceLister::Delegate implementation. 72 // PrivetDeviceLister::Delegate implementation.
73 virtual void DeviceChanged( 73 virtual void DeviceChanged(
74 bool added, 74 bool added,
75 const std::string& name, 75 const std::string& name,
76 const DeviceDescription& description) OVERRIDE; 76 const DeviceDescription& description) OVERRIDE;
77
77 virtual void DeviceRemoved(const std::string& name) OVERRIDE; 78 virtual void DeviceRemoved(const std::string& name) OVERRIDE;
78 79
80 virtual void DeviceCacheFlushed() OVERRIDE;
81
79 // CloudPrintPrinterList::Delegate implementation. 82 // CloudPrintPrinterList::Delegate implementation.
80 virtual void OnCloudPrintPrinterListReady() OVERRIDE; 83 virtual void OnCloudPrintPrinterListReady() OVERRIDE;
81 84
82 virtual void OnCloudPrintPrinterListUnavailable() OVERRIDE; 85 virtual void OnCloudPrintPrinterListUnavailable() OVERRIDE;
83 86
84 private: 87 private:
85 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap; 88 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap;
86 89
87 // Message handlers: 90 // Message handlers:
88 // For when the page is ready to recieve device notifications. 91 // For when the page is ready to recieve device notifications.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 scoped_ptr<CloudPrintPrinterList> cloud_print_printer_list_; 176 scoped_ptr<CloudPrintPrinterList> cloud_print_printer_list_;
174 177
175 // Announcement timeout for registration. 178 // Announcement timeout for registration.
176 base::CancelableCallback<void()> registration_announce_timeout_; 179 base::CancelableCallback<void()> registration_announce_timeout_;
177 180
178 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); 181 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler);
179 }; 182 };
180 183
181 } // namespace local_discovery 184 } // namespace local_discovery
182 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ 185 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698