| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROME_EXTENSION_FUNCTION_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_FUNCTION_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_FUNCTION_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_FUNCTION_H_ |
| 7 | 7 |
| 8 #include "extensions/browser/extension_function.h" | 8 #include "extensions/browser/extension_function.h" |
| 9 | 9 |
| 10 class Browser; | 10 class Browser; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 protected: | 61 protected: |
| 62 virtual ~ChromeAsyncExtensionFunction(); | 62 virtual ~ChromeAsyncExtensionFunction(); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 // A chrome specific analog to SyncExtensionFunction. This has access | 65 // A chrome specific analog to SyncExtensionFunction. This has access |
| 66 // the a chrome Profile. | 66 // the a chrome Profile. |
| 67 class ChromeSyncExtensionFunction : public ChromeAsyncExtensionFunction { | 67 class ChromeSyncExtensionFunction : public ChromeAsyncExtensionFunction { |
| 68 public: | 68 public: |
| 69 ChromeSyncExtensionFunction(); | 69 ChromeSyncExtensionFunction(); |
| 70 | 70 |
| 71 virtual void Run() OVERRIDE; | 71 virtual void RunSync() OVERRIDE; |
| 72 |
| 73 virtual void RunSync() = 0; |
| 72 | 74 |
| 73 protected: | 75 protected: |
| 74 virtual ~ChromeSyncExtensionFunction(); | 76 virtual ~ChromeSyncExtensionFunction(); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_FUNCTION_H_ | 79 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_FUNCTION_H_ |
| OLD | NEW |