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

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

Issue 2522763005: [Extensions] Remove the source_tab_id property on API request messages (Closed)
Patch Set: compile Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/browser/extension_function.h" 5 #include "extensions/browser/extension_function.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 ExtensionFunction::ExtensionFunction() 265 ExtensionFunction::ExtensionFunction()
266 : request_id_(-1), 266 : request_id_(-1),
267 profile_id_(NULL), 267 profile_id_(NULL),
268 name_(""), 268 name_(""),
269 has_callback_(false), 269 has_callback_(false),
270 include_incognito_(false), 270 include_incognito_(false),
271 user_gesture_(false), 271 user_gesture_(false),
272 bad_message_(false), 272 bad_message_(false),
273 histogram_value_(extensions::functions::UNKNOWN), 273 histogram_value_(extensions::functions::UNKNOWN),
274 source_tab_id_(-1),
275 source_context_type_(Feature::UNSPECIFIED_CONTEXT), 274 source_context_type_(Feature::UNSPECIFIED_CONTEXT),
276 source_process_id_(-1), 275 source_process_id_(-1),
277 did_respond_(false) {} 276 did_respond_(false) {}
278 277
279 ExtensionFunction::~ExtensionFunction() { 278 ExtensionFunction::~ExtensionFunction() {
280 } 279 }
281 280
282 UIThreadExtensionFunction* ExtensionFunction::AsUIThreadExtensionFunction() { 281 UIThreadExtensionFunction* ExtensionFunction::AsUIThreadExtensionFunction() {
283 return NULL; 282 return NULL;
284 } 283 }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 void AsyncExtensionFunction::SendResponse(bool success) { 615 void AsyncExtensionFunction::SendResponse(bool success) {
617 ResponseValue response; 616 ResponseValue response;
618 if (success) { 617 if (success) {
619 response = ArgumentList(std::move(results_)); 618 response = ArgumentList(std::move(results_));
620 } else { 619 } else {
621 response = results_ ? ErrorWithArguments(std::move(results_), error_) 620 response = results_ ? ErrorWithArguments(std::move(results_), error_)
622 : Error(error_); 621 : Error(error_);
623 } 622 }
624 Respond(std::move(response)); 623 Respond(std::move(response));
625 } 624 }
OLDNEW
« no previous file with comments | « extensions/browser/extension_function.h ('k') | extensions/browser/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698