OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "chrome/browser/extensions/extension_test_api.h" | 47 #include "chrome/browser/extensions/extension_test_api.h" |
48 #if defined(OS_CHROMEOS) | 48 #if defined(OS_CHROMEOS) |
49 #include "chrome/browser/extensions/extension_tts_api.h" | 49 #include "chrome/browser/extensions/extension_tts_api.h" |
50 #endif | 50 #endif |
51 #include "chrome/browser/extensions/extensions_quota_service.h" | 51 #include "chrome/browser/extensions/extensions_quota_service.h" |
52 #include "chrome/browser/extensions/extensions_service.h" | 52 #include "chrome/browser/extensions/extensions_service.h" |
53 #include "chrome/browser/profile.h" | 53 #include "chrome/browser/profile.h" |
54 #include "chrome/browser/renderer_host/render_process_host.h" | 54 #include "chrome/browser/renderer_host/render_process_host.h" |
55 #include "chrome/browser/renderer_host/render_view_host.h" | 55 #include "chrome/browser/renderer_host/render_view_host.h" |
56 #include "chrome/common/render_messages.h" | 56 #include "chrome/common/render_messages.h" |
| 57 #include "chrome/common/render_messages_params.h" |
57 #include "chrome/common/result_codes.h" | 58 #include "chrome/common/result_codes.h" |
58 #include "chrome/common/url_constants.h" | 59 #include "chrome/common/url_constants.h" |
| 60 #include "third_party/skia/include/core/SkBitmap.h" |
59 | 61 |
60 | 62 |
61 // FactoryRegistry ------------------------------------------------------------- | 63 // FactoryRegistry ------------------------------------------------------------- |
62 | 64 |
63 namespace { | 65 namespace { |
64 | 66 |
65 // Template for defining ExtensionFunctionFactory. | 67 // Template for defining ExtensionFunctionFactory. |
66 template<class T> | 68 template<class T> |
67 ExtensionFunction* NewExtensionFunction() { | 69 ExtensionFunction* NewExtensionFunction() { |
68 return new T(); | 70 return new T(); |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 } else { | 470 } else { |
469 NOTREACHED(); | 471 NOTREACHED(); |
470 base::KillProcess(render_view_host_->process()->GetHandle(), | 472 base::KillProcess(render_view_host_->process()->GetHandle(), |
471 ResultCodes::KILLED_BAD_MESSAGE, false); | 473 ResultCodes::KILLED_BAD_MESSAGE, false); |
472 } | 474 } |
473 } | 475 } |
474 | 476 |
475 Profile* ExtensionFunctionDispatcher::profile() { | 477 Profile* ExtensionFunctionDispatcher::profile() { |
476 return profile_; | 478 return profile_; |
477 } | 479 } |
OLD | NEW |