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

Side by Side Diff: content/plugin/webplugin_proxy.cc

Issue 7812020: Moved the following IPC messages used by the chrome NPAPI plugin installer out of content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « content/plugin/webplugin_proxy.h ('k') | content/renderer/render_view.h » ('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) 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 #include "content/plugin/webplugin_proxy.h" 5 #include "content/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_handle.h" 10 #include "base/memory/scoped_handle.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 std::string WebPluginProxy::GetCookies(const GURL& url, 248 std::string WebPluginProxy::GetCookies(const GURL& url,
249 const GURL& first_party_for_cookies) { 249 const GURL& first_party_for_cookies) {
250 std::string cookies; 250 std::string cookies;
251 Send(new PluginHostMsg_GetCookies(route_id_, url, 251 Send(new PluginHostMsg_GetCookies(route_id_, url,
252 first_party_for_cookies, &cookies)); 252 first_party_for_cookies, &cookies));
253 253
254 return cookies; 254 return cookies;
255 } 255 }
256 256
257 void WebPluginProxy::OnMissingPluginStatus(int status) {
258 Send(new PluginHostMsg_MissingPluginStatus(route_id_, status));
259 }
260
261 WebPluginResourceClient* WebPluginProxy::GetResourceClient(int id) { 257 WebPluginResourceClient* WebPluginProxy::GetResourceClient(int id) {
262 ResourceClientMap::iterator iterator = resource_clients_.find(id); 258 ResourceClientMap::iterator iterator = resource_clients_.find(id);
263 // The IPC messages which deal with streams are now asynchronous. It is 259 // The IPC messages which deal with streams are now asynchronous. It is
264 // now possible to receive stream messages from the renderer for streams 260 // now possible to receive stream messages from the renderer for streams
265 // which may have been cancelled by the plugin. 261 // which may have been cancelled by the plugin.
266 if (iterator == resource_clients_.end()) { 262 if (iterator == resource_clients_.end()) {
267 return NULL; 263 return NULL;
268 } 264 }
269 265
270 return iterator->second; 266 return iterator->second;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 resource_clients_.erase(index++); 734 resource_clients_.erase(index++);
739 } else { 735 } else {
740 index++; 736 index++;
741 } 737 }
742 } 738 }
743 } 739 }
744 740
745 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { 741 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) {
746 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); 742 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id));
747 } 743 }
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698