| 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 AppWindowCreateFunction(); |
| 15 | 16 |
| 16 protected: | 17 protected: |
| 17 virtual ~AppWindowCreateFunction() {} | 18 virtual ~AppWindowCreateFunction(); |
| 18 virtual bool RunImpl() OVERRIDE; | 19 virtual bool RunImpl() OVERRIDE; |
| 20 |
| 21 private: |
| 22 class DelayedResponseForDevTools; |
| 23 scoped_ptr<DelayedResponseForDevTools> delay_response_; |
| 19 }; | 24 }; |
| 20 | 25 |
| 21 } // namespace extensions | 26 } // namespace extensions |
| 22 | 27 |
| 23 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ | 28 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ |
| OLD | NEW |