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

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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 virtual void OnPrivetRegisterDone( 67 virtual void OnPrivetRegisterDone(
68 PrivetRegisterOperation* operation, 68 PrivetRegisterOperation* operation,
69 const std::string& device_id) OVERRIDE; 69 const std::string& device_id) OVERRIDE;
70 70
71 // PrivetDeviceLister::Delegate implementation. 71 // PrivetDeviceLister::Delegate implementation.
72 virtual void DeviceChanged( 72 virtual void DeviceChanged(
73 bool added, 73 bool added,
74 const std::string& name, 74 const std::string& name,
75 const DeviceDescription& description) OVERRIDE; 75 const DeviceDescription& description) OVERRIDE;
76
76 virtual void DeviceRemoved(const std::string& name) OVERRIDE; 77 virtual void DeviceRemoved(const std::string& name) OVERRIDE;
77 78
79 virtual void DeviceCacheFlushed() OVERRIDE;
80
78 // CloudPrintPrinterList::Delegate implementation. 81 // CloudPrintPrinterList::Delegate implementation.
79 virtual void OnCloudPrintPrinterListReady() OVERRIDE; 82 virtual void OnCloudPrintPrinterListReady() OVERRIDE;
80 83
81 virtual void OnCloudPrintPrinterListUnavailable() OVERRIDE; 84 virtual void OnCloudPrintPrinterListUnavailable() OVERRIDE;
82 85
83 private: 86 private:
84 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap; 87 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap;
85 88
86 // Message handlers: 89 // Message handlers:
87 // For when the page is ready to recieve device notifications. 90 // For when the page is ready to recieve device notifications.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 scoped_ptr<CloudPrintPrinterList> cloud_print_printer_list_; 175 scoped_ptr<CloudPrintPrinterList> cloud_print_printer_list_;
173 176
174 // Announcement timeout for registration. 177 // Announcement timeout for registration.
175 base::CancelableCallback<void()> registration_announce_timeout_; 178 base::CancelableCallback<void()> registration_announce_timeout_;
176 179
177 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); 180 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler);
178 }; 181 };
179 182
180 } // namespace local_discovery 183 } // namespace local_discovery
181 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ 184 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698