OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 #include "chrome/browser/local_discovery/cloud_device_list_delegate.h" | 10 #include "chrome/browser/local_discovery/cloud_device_list_delegate.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 protected: | 102 protected: |
103 virtual ~GcdPrivatePrefetchWifiPasswordFunction(); | 103 virtual ~GcdPrivatePrefetchWifiPasswordFunction(); |
104 | 104 |
105 // AsyncExtensionFunction overrides. | 105 // AsyncExtensionFunction overrides. |
106 virtual bool RunAsync() OVERRIDE; | 106 virtual bool RunAsync() OVERRIDE; |
107 | 107 |
108 void OnResponse(bool response); | 108 void OnResponse(bool response); |
109 }; | 109 }; |
110 | 110 |
| 111 class GcdPrivateGetPrefetchedWifiNameListFunction |
| 112 : public ChromeSyncExtensionFunction { |
| 113 public: |
| 114 DECLARE_EXTENSION_FUNCTION("gcdPrivate.getPrefetchedWifiNameList", |
| 115 GCDPRIVATE_GETPREFETCHEDWIFINAMELIST); |
| 116 |
| 117 GcdPrivateGetPrefetchedWifiNameListFunction(); |
| 118 |
| 119 protected: |
| 120 virtual ~GcdPrivateGetPrefetchedWifiNameListFunction(); |
| 121 |
| 122 // SyncExtensionFunction overrides. |
| 123 virtual bool RunSync() OVERRIDE; |
| 124 }; |
| 125 |
111 class GcdPrivateEstablishSessionFunction : public ChromeAsyncExtensionFunction { | 126 class GcdPrivateEstablishSessionFunction : public ChromeAsyncExtensionFunction { |
112 public: | 127 public: |
113 DECLARE_EXTENSION_FUNCTION("gcdPrivate.establishSession", | 128 DECLARE_EXTENSION_FUNCTION("gcdPrivate.establishSession", |
114 GCDPRIVATE_ESTABLISHSESSION) | 129 GCDPRIVATE_ESTABLISHSESSION) |
115 | 130 |
116 GcdPrivateEstablishSessionFunction(); | 131 GcdPrivateEstablishSessionFunction(); |
117 | 132 |
118 protected: | 133 protected: |
119 virtual ~GcdPrivateEstablishSessionFunction(); | 134 virtual ~GcdPrivateEstablishSessionFunction(); |
120 | 135 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 267 |
253 // AsyncExtensionFunction overrides. | 268 // AsyncExtensionFunction overrides. |
254 virtual bool RunAsync() OVERRIDE; | 269 virtual bool RunAsync() OVERRIDE; |
255 | 270 |
256 private: | 271 private: |
257 }; | 272 }; |
258 | 273 |
259 } // namespace extensions | 274 } // namespace extensions |
260 | 275 |
261 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ | 276 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ |
OLD | NEW |