Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1211)

Side by Side Diff: chrome_frame/chrome_frame_npapi.h

Issue 6756044: Remove extension automation support that was used only by CEEE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_delegate.h ('k') | chrome_frame/chrome_frame_npapi.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 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_FRAME_CHROME_FRAME_NPAPI_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_NPAPI_H_
6 #define CHROME_FRAME_CHROME_FRAME_NPAPI_H_ 6 #define CHROME_FRAME_CHROME_FRAME_NPAPI_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlwin.h> 9 #include <atlwin.h>
10 #include <string> 10 #include <string>
11 11
(...skipping 28 matching lines...) Expand all
40 typedef enum { 40 typedef enum {
41 PLUGIN_PROPERTY_VERSION, 41 PLUGIN_PROPERTY_VERSION,
42 PLUGIN_PROPERTY_SRC, 42 PLUGIN_PROPERTY_SRC,
43 PLUGIN_PROPERTY_ONLOAD, 43 PLUGIN_PROPERTY_ONLOAD,
44 PLUGIN_PROPERTY_ONERROR, 44 PLUGIN_PROPERTY_ONERROR,
45 PLUGIN_PROPERTY_ONMESSAGE, 45 PLUGIN_PROPERTY_ONMESSAGE,
46 PLUGIN_PROPERTY_READYSTATE, 46 PLUGIN_PROPERTY_READYSTATE,
47 PLUGIN_PROPERTY_ONPRIVATEMESSAGE, 47 PLUGIN_PROPERTY_ONPRIVATEMESSAGE,
48 PLUGIN_PROPERTY_USECHROMENETWORK, 48 PLUGIN_PROPERTY_USECHROMENETWORK,
49 PLUGIN_PROPERTY_ONCLOSE, 49 PLUGIN_PROPERTY_ONCLOSE,
50 PLUGIN_PROPERTY_SESSIONID,
51 PLUGIN_PROPERTY_COUNT // must be last 50 PLUGIN_PROPERTY_COUNT // must be last
52 } PluginPropertyId; 51 } PluginPropertyId;
53 52
54 static const int kWmSwitchFocusToChromeFrame = WM_APP + 0x100; 53 static const int kWmSwitchFocusToChromeFrame = WM_APP + 0x100;
55 54
56 static NPClass plugin_class_; 55 static NPClass plugin_class_;
57 static NPClass* PluginClass() { 56 static NPClass* PluginClass() {
58 return &plugin_class_; 57 return &plugin_class_;
59 } 58 }
60 59
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 int open_disposition); 139 int open_disposition);
141 virtual void OnLoad(const GURL& url); 140 virtual void OnLoad(const GURL& url);
142 virtual void OnMessageFromChromeFrame(const std::string& message, 141 virtual void OnMessageFromChromeFrame(const std::string& message,
143 const std::string& origin, 142 const std::string& origin,
144 const std::string& target); 143 const std::string& target);
145 // ChromeFrameDelegate overrides 144 // ChromeFrameDelegate overrides
146 virtual void OnLoadFailed(int error_code, const std::string& url); 145 virtual void OnLoadFailed(int error_code, const std::string& url);
147 virtual void OnAutomationServerReady(); 146 virtual void OnAutomationServerReady();
148 virtual void OnAutomationServerLaunchFailed( 147 virtual void OnAutomationServerLaunchFailed(
149 AutomationLaunchResult reason, const std::string& server_version); 148 AutomationLaunchResult reason, const std::string& server_version);
150 virtual void OnExtensionInstalled(const FilePath& path,
151 void* user_data, AutomationMsg_ExtensionResponseValues response);
152 virtual void OnGetEnabledExtensionsComplete(
153 void* user_data,
154 const std::vector<FilePath>& extension_directories);
155 virtual void OnCloseTab(); 149 virtual void OnCloseTab();
156 150
157 private: 151 private:
158 void SubscribeToFocusEvents(); 152 void SubscribeToFocusEvents();
159 void UnsubscribeFromFocusEvents(); 153 void UnsubscribeFromFocusEvents();
160 154
161 // Equivalent of: 155 // Equivalent of:
162 // event = window.document.createEvent("Event"); 156 // event = window.document.createEvent("Event");
163 // event.initEvent(type, bubbles, cancelable); 157 // event.initEvent(type, bubbles, cancelable);
164 // and then returns the event object. 158 // and then returns the event object.
(...skipping 26 matching lines...) Expand all
191 bool NavigateToURL(const NPVariant* args, uint32_t arg_count, 185 bool NavigateToURL(const NPVariant* args, uint32_t arg_count,
192 NPVariant* result); 186 NPVariant* result);
193 187
194 bool postMessage(NPObject* npobject, const NPVariant* args, 188 bool postMessage(NPObject* npobject, const NPVariant* args,
195 uint32_t arg_count, NPVariant* result); 189 uint32_t arg_count, NPVariant* result);
196 190
197 // This method is only available when the control is in privileged mode. 191 // This method is only available when the control is in privileged mode.
198 bool postPrivateMessage(NPObject* npobject, const NPVariant* args, 192 bool postPrivateMessage(NPObject* npobject, const NPVariant* args,
199 uint32_t arg_count, NPVariant* result); 193 uint32_t arg_count, NPVariant* result);
200 194
201 // This method is only available when the control is in privileged mode.
202 bool installExtension(NPObject* npobject, const NPVariant* args,
203 uint32_t arg_count, NPVariant* result);
204
205 // This method is only available when the control is in privileged mode.
206 bool loadExtension(NPObject* npobject, const NPVariant* args,
207 uint32_t arg_count, NPVariant* result);
208
209 // This method is only available when the control is in privileged mode.
210 bool enableExtensionAutomation(NPObject* npobject, const NPVariant* args,
211 uint32_t arg_count, NPVariant* result);
212
213 // This method is only available when the control is in privileged mode.
214 bool getEnabledExtensions(NPObject* npobject, const NPVariant* args,
215 uint32_t arg_count, NPVariant* result);
216
217 // Pointers to method implementations. 195 // Pointers to method implementations.
218 static PluginMethod plugin_methods_[]; 196 static PluginMethod plugin_methods_[];
219 197
220 // NPObject method ids exposed by the plugin. 198 // NPObject method ids exposed by the plugin.
221 static NPIdentifier plugin_method_identifiers_[]; 199 static NPIdentifier plugin_method_identifiers_[];
222 200
223 // NPObject method names exposed by the plugin. 201 // NPObject method names exposed by the plugin.
224 static const NPUTF8* plugin_method_identifier_names_[]; 202 static const NPUTF8* plugin_method_identifier_names_[];
225 203
226 // NPObject property ids exposed by the plugin. 204 // NPObject property ids exposed by the plugin.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // The value of src property keeping the current URL. 323 // The value of src property keeping the current URL.
346 std::string src_; 324 std::string src_;
347 // Used to fetch network resources when host network stack is in use. 325 // Used to fetch network resources when host network stack is in use.
348 NPAPIUrlRequestManager url_fetcher_; 326 NPAPIUrlRequestManager url_fetcher_;
349 327
350 // Set if we receive a navigation request before initializing Chrome. 328 // Set if we receive a navigation request before initializing Chrome.
351 bool navigate_after_initialization_; 329 bool navigate_after_initialization_;
352 }; 330 };
353 331
354 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ 332 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_delegate.h ('k') | chrome_frame/chrome_frame_npapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698