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_APP_WINDOW_APP_WINDOW_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 class AppWindowCreateFunction : public SyncExtensionFunction { | 12 class AppWindowCreateFunction : public AsyncExtensionFunction { |
| 13 public: | 13 public: |
| 14 DECLARE_EXTENSION_FUNCTION_NAME("app.window.create"); | 14 DECLARE_EXTENSION_FUNCTION_NAME("app.window.create"); |
| 15 | 15 |
| 16 void SendDelayedResponse(); | |
|
tapted
2012/10/23 23:41:15
tossed this up for a while.. `SendResponse` is pro
| |
| 17 | |
| 16 protected: | 18 protected: |
| 17 virtual ~AppWindowCreateFunction() {} | 19 virtual ~AppWindowCreateFunction() {} |
| 18 virtual bool RunImpl() OVERRIDE; | 20 virtual bool RunImpl() OVERRIDE; |
| 19 }; | 21 }; |
| 20 | 22 |
| 21 } // namespace extensions | 23 } // namespace extensions |
| 22 | 24 |
| 23 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ | 25 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ |
| OLD | NEW |