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

Unified Diff: chrome/browser/extensions/api/gcd_private/gcd_private_api.h

Issue 427123002: Added function to get list of networks with prefetched passwords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wifi_session1
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/gcd_private/gcd_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/gcd_private/gcd_private_api.h
diff --git a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
index 67927d957fd5d1fd44b28b621987211c1372d821..149709e5fcfca889fd489d23c15ef64f24458be7 100644
--- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
+++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
@@ -77,6 +77,8 @@ class GcdPrivateAPI : public BrowserContextKeyedAPI,
void RequestWifiPassword(const std::string& ssid,
const SuccessCallback& callback);
+ scoped_ptr<base::ListValue> GetPrefetchedSSIDList();
+
private:
friend class BrowserContextKeyedAPIFactory<GcdPrivateAPI>;
@@ -196,6 +198,21 @@ class GcdPrivatePrefetchWifiPasswordFunction
void OnResponse(bool response);
};
+class GcdPrivateGetPrefetchedWifiNameListFunction
+ : public ChromeSyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.getPrefetchedWifiNameList",
+ GCDPRIVATE_GETPREFETCHEDWIFINAMELIST);
+
+ GcdPrivateGetPrefetchedWifiNameListFunction();
+
+ protected:
+ virtual ~GcdPrivateGetPrefetchedWifiNameListFunction();
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunSync() OVERRIDE;
+};
+
class GcdPrivateEstablishSessionFunction : public ChromeAsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("gcdPrivate.establishSession",
« no previous file with comments | « no previous file | chrome/browser/extensions/api/gcd_private/gcd_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698