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

Side by Side Diff: webkit/plugins/npapi/webplugin_impl.h

Issue 6392042: Propagate the user gesture state. It is necessary to do correct pop-up blocki... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | « no previous file | webkit/plugins/npapi/webplugin_impl.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) 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 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 PLUGIN_SRC, 156 PLUGIN_SRC,
157 DOCUMENT_URL, 157 DOCUMENT_URL,
158 NO_REFERRER 158 NO_REFERRER
159 }; 159 };
160 160
161 // Given a download request, check if we need to route the output to a frame. 161 // Given a download request, check if we need to route the output to a frame.
162 // Returns ROUTED if the load is done and routed to a frame, NOT_ROUTED or 162 // Returns ROUTED if the load is done and routed to a frame, NOT_ROUTED or
163 // corresponding error codes otherwise. 163 // corresponding error codes otherwise.
164 RoutingStatus RouteToFrame(const char* url, 164 RoutingStatus RouteToFrame(const char* url,
165 bool is_javascript_url, 165 bool is_javascript_url,
166 bool popups_allowed,
166 const char* method, 167 const char* method,
167 const char* target, 168 const char* target,
168 const char* buf, 169 const char* buf,
169 unsigned int len, 170 unsigned int len,
170 int notify_id, 171 int notify_id,
171 Referrer referrer_flag); 172 Referrer referrer_flag);
172 173
173 // Returns the next avaiable resource id. Returns 0 if the operation fails. 174 // Returns the next avaiable resource id. Returns 0 if the operation fails.
174 // It may fail if the page has already been closed. 175 // It may fail if the page has already been closed.
175 unsigned long GetNextResourceId(); 176 unsigned long GetNextResourceId();
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 327
327 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; 328 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_;
328 329
329 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 330 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
330 }; 331 };
331 332
332 } // namespace npapi 333 } // namespace npapi
333 } // namespace webkit 334 } // namespace webkit
334 335
335 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ 336 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/npapi/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698