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

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

Issue 2327723002: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: fix Created 4 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
« no previous file with comments | « extensions/browser/extension_function.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 --count_; 218 --count_;
219 } 219 }
220 220
221 221
222 } // namespace 222 } // namespace
223 223
224 // static 224 // static
225 bool ExtensionFunction::ignore_all_did_respond_for_testing_do_not_use = false; 225 bool ExtensionFunction::ignore_all_did_respond_for_testing_do_not_use = false;
226 226
227 // static 227 // static
228 const char* ExtensionFunction::kUnknownErrorDoNotUse = "Unknown error.";
229
230 // static
228 void ExtensionFunctionDeleteTraits::Destruct(const ExtensionFunction* x) { 231 void ExtensionFunctionDeleteTraits::Destruct(const ExtensionFunction* x) {
229 x->Destruct(); 232 x->Destruct();
230 } 233 }
231 234
232 // Helper class to track the lifetime of ExtensionFunction's RenderFrameHost and 235 // Helper class to track the lifetime of ExtensionFunction's RenderFrameHost and
233 // notify the function when it is deleted, as well as forwarding any messages 236 // notify the function when it is deleted, as well as forwarding any messages
234 // to the ExtensionFunction. 237 // to the ExtensionFunction.
235 class UIThreadExtensionFunction::RenderFrameHostTracker 238 class UIThreadExtensionFunction::RenderFrameHostTracker
236 : public content::WebContentsObserver { 239 : public content::WebContentsObserver {
237 public: 240 public:
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 616
614 ExtensionFunction::ResponseAction AsyncExtensionFunction::Run() { 617 ExtensionFunction::ResponseAction AsyncExtensionFunction::Run() {
615 return RunAsync() ? RespondLater() : RespondNow(Error(error_)); 618 return RunAsync() ? RespondLater() : RespondNow(Error(error_));
616 } 619 }
617 620
618 // static 621 // static
619 bool AsyncExtensionFunction::ValidationFailure( 622 bool AsyncExtensionFunction::ValidationFailure(
620 AsyncExtensionFunction* function) { 623 AsyncExtensionFunction* function) {
621 return false; 624 return false;
622 } 625 }
OLDNEW
« no previous file with comments | « extensions/browser/extension_function.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698