OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_USER_SCRIPT_SLAVE_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
16 #include "base/stl_util-inl.h" | 16 #include "base/stl_util.h" |
17 #include "base/string_piece.h" | 17 #include "base/string_piece.h" |
18 #include "chrome/common/extensions/user_script.h" | 18 #include "chrome/common/extensions/user_script.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" |
20 | 20 |
21 class Extension; | 21 class Extension; |
22 class ExtensionSet; | 22 class ExtensionSet; |
23 | 23 |
24 namespace WebKit { | 24 namespace WebKit { |
25 class WebFrame; | 25 class WebFrame; |
26 } | 26 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Extension metadata. | 71 // Extension metadata. |
72 const ExtensionSet* extensions_; | 72 const ExtensionSet* extensions_; |
73 | 73 |
74 typedef std::map<std::string, int> IsolatedWorldMap; | 74 typedef std::map<std::string, int> IsolatedWorldMap; |
75 static IsolatedWorldMap isolated_world_ids_; | 75 static IsolatedWorldMap isolated_world_ids_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(UserScriptSlave); | 77 DISALLOW_COPY_AND_ASSIGN(UserScriptSlave); |
78 }; | 78 }; |
79 | 79 |
80 #endif // CHROME_RENDERER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ | 80 #endif // CHROME_RENDERER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ |
OLD | NEW |