| 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 EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <list> | 10 #include <list> |
| 9 #include <string> | 11 #include <string> |
| 10 | 12 |
| 11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 16 #include "base/process/process.h" | 19 #include "base/process/process.h" |
| 17 #include "base/sequenced_task_runner_helpers.h" | 20 #include "base/sequenced_task_runner_helpers.h" |
| 18 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 19 #include "content/public/common/console_message_level.h" | 22 #include "content/public/common/console_message_level.h" |
| 20 #include "extensions/browser/extension_function_histogram_value.h" | 23 #include "extensions/browser/extension_function_histogram_value.h" |
| 21 #include "extensions/browser/info_map.h" | 24 #include "extensions/browser/info_map.h" |
| 22 #include "extensions/common/extension.h" | 25 #include "extensions/common/extension.h" |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 private: | 679 private: |
| 677 // If you're hitting a compile error here due to "final" - great! You're | 680 // If you're hitting a compile error here due to "final" - great! You're |
| 678 // doing the right thing, you just need to extend IOThreadExtensionFunction | 681 // doing the right thing, you just need to extend IOThreadExtensionFunction |
| 679 // instead of SyncIOExtensionFunction. | 682 // instead of SyncIOExtensionFunction. |
| 680 ResponseAction Run() final; | 683 ResponseAction Run() final; |
| 681 | 684 |
| 682 DISALLOW_COPY_AND_ASSIGN(SyncIOThreadExtensionFunction); | 685 DISALLOW_COPY_AND_ASSIGN(SyncIOThreadExtensionFunction); |
| 683 }; | 686 }; |
| 684 | 687 |
| 685 #endif // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ | 688 #endif // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ |
| OLD | NEW |