Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SOCKET_SOCKET_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "chrome/browser/extensions/api/api_function.h" | 9 #include "chrome/browser/extensions/api/api_function.h" |
| 10 #include "chrome/browser/extensions/api/api_resource_manager.h" | 10 #include "chrome/browser/extensions/api/api_resource_manager.h" |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 429 protected: | 429 protected: |
| 430 virtual ~SocketGetJoinedGroupsFunction(); | 430 virtual ~SocketGetJoinedGroupsFunction(); |
| 431 | 431 |
| 432 // AsyncApiFunction | 432 // AsyncApiFunction |
| 433 virtual bool Prepare() OVERRIDE; | 433 virtual bool Prepare() OVERRIDE; |
| 434 virtual void Work() OVERRIDE; | 434 virtual void Work() OVERRIDE; |
| 435 | 435 |
| 436 private: | 436 private: |
| 437 scoped_ptr<api::socket::GetJoinedGroups::Params> params_; | 437 scoped_ptr<api::socket::GetJoinedGroups::Params> params_; |
| 438 }; | 438 }; |
| 439 | |
| 440 class SocketAllowAddressReuseFunction : public SocketAsyncApiFunction { | |
| 441 public: | |
| 442 DECLARE_EXTENSION_FUNCTION("socket.allowAddressReuse", | |
| 443 SOCKET_ALLOW_ADDRESS_REUSE) | |
| 444 | |
| 445 SocketAllowAddressReuseFunction(); | |
| 446 | |
| 447 protected: | |
| 448 virtual ~SocketAllowAddressReuseFunction(); | |
| 449 | |
| 450 // AsyncApiFunction | |
| 451 virtual bool Prepare() OVERRIDE; | |
| 452 virtual void Work() OVERRIDE; | |
| 453 | |
| 454 private: | |
| 455 scoped_ptr<api::socket::AllowAddressReuse::Params> params_; | |
| 456 }; | |
|
miket_OOO
2013/05/24 20:53:48
add vertical whitespace (this was an error before
Noam Samuel
2013/05/24 21:43:53
Done.
| |
| 439 } // namespace extensions | 457 } // namespace extensions |
| 440 | 458 |
| 441 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ | 459 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ |
| OLD | NEW |