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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 251093: Modify extension request IPC messages to pass a ListValue instead of a string. (Closed)
Patch Set: notreached messages Created 11 years, 2 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
« no previous file with comments | « chrome/renderer/render_view.h ('k') | ipc/ipc_message_utils.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) 2009 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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3290 3290
3291 SetBackground(background); 3291 SetBackground(background);
3292 } 3292 }
3293 3293
3294 void RenderView::OnSetActive(bool active) { 3294 void RenderView::OnSetActive(bool active) {
3295 if (webview()) 3295 if (webview())
3296 webview()->setIsActive(active); 3296 webview()->setIsActive(active);
3297 } 3297 }
3298 3298
3299 void RenderView::SendExtensionRequest(const std::string& name, 3299 void RenderView::SendExtensionRequest(const std::string& name,
3300 const std::string& args, 3300 const ListValue& args,
3301 int request_id, 3301 int request_id,
3302 bool has_callback) { 3302 bool has_callback) {
3303 Send(new ViewHostMsg_ExtensionRequest(routing_id_, name, args, request_id, 3303 Send(new ViewHostMsg_ExtensionRequest(routing_id_, name, args, request_id,
3304 has_callback)); 3304 has_callback));
3305 } 3305 }
3306 3306
3307 void RenderView::OnExtensionResponse(int request_id, 3307 void RenderView::OnExtensionResponse(int request_id,
3308 bool success, 3308 bool success,
3309 const std::string& response, 3309 const std::string& response,
3310 const std::string& error) { 3310 const std::string& error) {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
3624 new PluginMsg_SignalModalDialogEvent(host_window_)); 3624 new PluginMsg_SignalModalDialogEvent(host_window_));
3625 3625
3626 message->EnableMessagePumping(); // Runs a nested message loop. 3626 message->EnableMessagePumping(); // Runs a nested message loop.
3627 bool rv = Send(message); 3627 bool rv = Send(message);
3628 3628
3629 PluginChannelHost::Broadcast( 3629 PluginChannelHost::Broadcast(
3630 new PluginMsg_ResetModalDialogEvent(host_window_)); 3630 new PluginMsg_ResetModalDialogEvent(host_window_));
3631 3631
3632 return rv; 3632 return rv;
3633 } 3633 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698