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

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

Issue 16703018: Rewrite scoped_ptr<T>(NULL) to use the default ctor in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const IPC::Message& message) { 48 const IPC::Message& message) {
49 return function_->OnMessageReceivedFromRenderView(message); 49 return function_->OnMessageReceivedFromRenderView(message);
50 } 50 }
51 51
52 ExtensionFunction::ExtensionFunction() 52 ExtensionFunction::ExtensionFunction()
53 : request_id_(-1), 53 : request_id_(-1),
54 profile_id_(NULL), 54 profile_id_(NULL),
55 has_callback_(false), 55 has_callback_(false),
56 include_incognito_(false), 56 include_incognito_(false),
57 user_gesture_(false), 57 user_gesture_(false),
58 args_(NULL),
59 bad_message_(false), 58 bad_message_(false),
60 histogram_value_(extensions::functions::UNKNOWN) { 59 histogram_value_(extensions::functions::UNKNOWN) {}
61 }
62 60
63 ExtensionFunction::~ExtensionFunction() { 61 ExtensionFunction::~ExtensionFunction() {
64 } 62 }
65 63
66 UIThreadExtensionFunction* ExtensionFunction::AsUIThreadExtensionFunction() { 64 UIThreadExtensionFunction* ExtensionFunction::AsUIThreadExtensionFunction() {
67 return NULL; 65 return NULL;
68 } 66 }
69 67
70 IOThreadExtensionFunction* ExtensionFunction::AsIOThreadExtensionFunction() { 68 IOThreadExtensionFunction* ExtensionFunction::AsIOThreadExtensionFunction() {
71 return NULL; 69 return NULL;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 300
303 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { 301 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() {
304 } 302 }
305 303
306 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { 304 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() {
307 } 305 }
308 306
309 void SyncIOThreadExtensionFunction::Run() { 307 void SyncIOThreadExtensionFunction::Run() {
310 SendResponse(RunImpl()); 308 SendResponse(RunImpl());
311 } 309 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698