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

Side by Side Diff: chrome/browser/extensions/extension_function.cc

Issue 10553010: Rename IPC::Channel and IPC::Sender in src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/extensions/extension_function.h" 5 #include "chrome/browser/extensions/extension_function.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" 9 #include "chrome/browser/extensions/extension_function_dispatcher.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool ExtensionFunction::ShouldSkipQuotaLimiting() const { 113 bool ExtensionFunction::ShouldSkipQuotaLimiting() const {
114 return false; 114 return false;
115 } 115 }
116 116
117 bool ExtensionFunction::HasOptionalArgument(size_t index) { 117 bool ExtensionFunction::HasOptionalArgument(size_t index) {
118 Value* value; 118 Value* value;
119 return args_->Get(index, &value) && !value->IsType(Value::TYPE_NULL); 119 return args_->Get(index, &value) && !value->IsType(Value::TYPE_NULL);
120 } 120 }
121 121
122 void ExtensionFunction::SendResponseImpl(base::ProcessHandle process, 122 void ExtensionFunction::SendResponseImpl(base::ProcessHandle process,
123 IPC::Message::Sender* ipc_sender, 123 IPC::Sender* ipc_sender,
124 int routing_id, 124 int routing_id,
125 bool success) { 125 bool success) {
126 DCHECK(ipc_sender); 126 DCHECK(ipc_sender);
127 if (bad_message_) { 127 if (bad_message_) {
128 HandleBadMessage(process); 128 HandleBadMessage(process);
129 return; 129 return;
130 } 130 }
131 131
132 // Value objects can't be directly serialized in our IPC code, so we wrap the 132 // Value objects can't be directly serialized in our IPC code, so we wrap the
133 // result_ Value with a ListValue (also transferring ownership of result_). 133 // result_ Value with a ListValue (also transferring ownership of result_).
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { 296 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() {
297 } 297 }
298 298
299 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { 299 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() {
300 } 300 }
301 301
302 void SyncIOThreadExtensionFunction::Run() { 302 void SyncIOThreadExtensionFunction::Run() {
303 SendResponse(RunImpl()); 303 SendResponse(RunImpl());
304 } 304 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function.h ('k') | chrome/browser/extensions/extension_function_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698