OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 25 matching lines...) Expand all Loading... |
36 const NotificationSource& source, | 36 const NotificationSource& source, |
37 const NotificationDetails& details) { | 37 const NotificationDetails& details) { |
38 CHECK(type == content::NOTIFICATION_RENDER_VIEW_HOST_DELETED); | 38 CHECK(type == content::NOTIFICATION_RENDER_VIEW_HOST_DELETED); |
39 CHECK(Source<RenderViewHost>(source).ptr() == | 39 CHECK(Source<RenderViewHost>(source).ptr() == |
40 function_->render_view_host()); | 40 function_->render_view_host()); |
41 function_->SetRenderViewHost(NULL); | 41 function_->SetRenderViewHost(NULL); |
42 } | 42 } |
43 | 43 |
44 ExtensionFunction::ExtensionFunction() | 44 ExtensionFunction::ExtensionFunction() |
45 : request_id_(-1), | 45 : request_id_(-1), |
46 profile_id_(Profile::kInvalidProfileId), | 46 profile_(NULL), |
47 has_callback_(false), | 47 has_callback_(false), |
48 include_incognito_(false), | 48 include_incognito_(false), |
49 user_gesture_(false), | 49 user_gesture_(false), |
50 args_(NULL), | 50 args_(NULL), |
51 bad_message_(false) { | 51 bad_message_(false) { |
52 } | 52 } |
53 | 53 |
54 ExtensionFunction::~ExtensionFunction() { | 54 ExtensionFunction::~ExtensionFunction() { |
55 } | 55 } |
56 | 56 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { | 194 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { |
195 } | 195 } |
196 | 196 |
197 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { | 197 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { |
198 } | 198 } |
199 | 199 |
200 void SyncIOThreadExtensionFunction::Run() { | 200 void SyncIOThreadExtensionFunction::Run() { |
201 SendResponse(RunImpl()); | 201 SendResponse(RunImpl()); |
202 } | 202 } |
OLD | NEW |