| 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 | |
| 126 class GcdPrivateEstablishSessionFunction : public ChromeAsyncExtensionFunction { | 111 class GcdPrivateEstablishSessionFunction : public ChromeAsyncExtensionFunction { |
| 127 public: | 112 public: |
| 128 DECLARE_EXTENSION_FUNCTION("gcdPrivate.establishSession", | 113 DECLARE_EXTENSION_FUNCTION("gcdPrivate.establishSession", |
| 129 GCDPRIVATE_ESTABLISHSESSION) | 114 GCDPRIVATE_ESTABLISHSESSION) |
| 130 | 115 |
| 131 GcdPrivateEstablishSessionFunction(); | 116 GcdPrivateEstablishSessionFunction(); |
| 132 | 117 |
| 133 protected: | 118 protected: |
| 134 virtual ~GcdPrivateEstablishSessionFunction(); | 119 virtual ~GcdPrivateEstablishSessionFunction(); |
| 135 | 120 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 252 |
| 268 // AsyncExtensionFunction overrides. | 253 // AsyncExtensionFunction overrides. |
| 269 virtual bool RunAsync() OVERRIDE; | 254 virtual bool RunAsync() OVERRIDE; |
| 270 | 255 |
| 271 private: | 256 private: |
| 272 }; | 257 }; |
| 273 | 258 |
| 274 } // namespace extensions | 259 } // namespace extensions |
| 275 | 260 |
| 276 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ | 261 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ |
| OLD | NEW |