OLD | NEW |
1 // Copyright (c) 2011 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_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| 11 #include "base/string_piece.h" |
11 #include "chrome/renderer/extensions/chrome_v8_extension_handler.h" | 12 #include "chrome/renderer/extensions/chrome_v8_extension_handler.h" |
12 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
13 | 14 |
14 #include <map> | 15 #include <map> |
15 #include <set> | 16 #include <set> |
16 #include <string> | 17 #include <string> |
17 | 18 |
18 class ChromeV8Context; | 19 class ChromeV8Context; |
19 class Extension; | 20 class Extension; |
20 class ExtensionDispatcher; | 21 class ExtensionDispatcher; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 96 |
96 // Map of all current handlers. | 97 // Map of all current handlers. |
97 typedef std::map<ChromeV8Context*, | 98 typedef std::map<ChromeV8Context*, |
98 linked_ptr<ChromeV8ExtensionHandler> > HandlerMap; | 99 linked_ptr<ChromeV8ExtensionHandler> > HandlerMap; |
99 HandlerMap handlers_; | 100 HandlerMap handlers_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(ChromeV8Extension); | 102 DISALLOW_COPY_AND_ASSIGN(ChromeV8Extension); |
102 }; | 103 }; |
103 | 104 |
104 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_H_ | 105 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_H_ |
OLD | NEW |