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_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 RenderViewHost* render_view_host_; | 129 RenderViewHost* render_view_host_; |
130 | 130 |
131 Delegate* delegate_; | 131 Delegate* delegate_; |
132 | 132 |
133 GURL url_; | 133 GURL url_; |
134 | 134 |
135 std::string extension_id_; | 135 std::string extension_id_; |
136 | 136 |
137 scoped_refptr<Peer> peer_; | 137 scoped_refptr<Peer> peer_; |
138 | |
139 // AutomationExtensionFunction requires access to the RenderViewHost | |
140 // associated with us. We make it a friend rather than exposing the | |
141 // RenderViewHost as a public method as we wouldn't want everyone to | |
142 // start assuming a 1:1 relationship between us and RenderViewHost, | |
143 // whereas AutomationExtensionFunction is by necessity "tight" with us. | |
144 friend class AutomationExtensionFunction; | |
145 }; | 138 }; |
146 | 139 |
147 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 140 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
OLD | NEW |